English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm trying to create simple HTML pages using ASP code to output the file permanently. I'm having a lot of trouble with it because using the FileSystemObject keeps returning the error "Bad file name or number.", no matter what the file name is. What can I do to fix this?

Here's the code I'm using at the moment (I know there's not supposed to be any spaces in the statements. I used them to display them here properly):

path = "http://www.stpenterprises.net/tips/index.txt"

' ForReading = 1
' ForWriting = 2
' ForAppending = 3

set file = fso. opentextfile (path, 2, TRUE)

file. write (strName) & vbcrlf
file. write (strHomePage) & vbcrlf
file. write (strEmail) & vbcrlf
file. close

set file = nothing
set fso = nothing

2007-03-28 19:03:09 · 1 answers · asked by Rockstar 6 in Computers & Internet Programming & Design

1 answers

I believe "file" is a reserved word.

2007-03-28 20:11:52 · answer #1 · answered by Kasey C 7 · 0 0

fedest.com, questions and answers