I am receiving the following ASP error message:
-----------------------------------------------
Microsoft VBScript runtime error '800a0036'
Bad file mode
-----------------------------------------------
I create a FileSystemObject in these lines:
Set FSO = Server.CreateObject("Scripting.FileSystemObject"
Set CurFile = FSO.OpenTextFile(Server.MapPath("Current.txt")
I recieve the error message during execution of the following line:
CurFile.WriteLine(CurrentPerson)
The variable, CurrentPerson, contains a string value.
If I comment this line out, the page runs fine.
What am I missing?
-----------------------------------------------
Microsoft VBScript runtime error '800a0036'
Bad file mode
-----------------------------------------------
I create a FileSystemObject in these lines:
Set FSO = Server.CreateObject("Scripting.FileSystemObject"
Set CurFile = FSO.OpenTextFile(Server.MapPath("Current.txt")
I recieve the error message during execution of the following line:
CurFile.WriteLine(CurrentPerson)
The variable, CurrentPerson, contains a string value.
If I comment this line out, the page runs fine.
What am I missing?