ASP question
I want to generate a text file with some text and I have the following code.
Dim createfile, fileobject
set fileobject = Server.CreateObject("Scripting.FileSyste mObject")
if not fileobject.FileExists(Server.MapPath("la yne.txt")) then
set createfile = fileobject.CreateTextFile(Server.MapPath( "layne.txt"), False)
createfile.Write("
")
'createfile.WriteLine("there")
createfile.Close
set createfile = nothing
end if
set fileobject = nothing
The error is on the double quotes in line 5:
createfile.Write("
")
Can someone help me out?
Dim createfile, fileobject
set fileobject = Server.CreateObject("Scripting.FileSyste
if not fileobject.FileExists(Server.MapPath("la
set createfile = fileobject.CreateTextFile(Server.MapPath(
createfile.Write("
'createfile.WriteLine("there")
createfile.Close
set createfile = nothing
end if
set fileobject = nothing
The error is on the double quotes in line 5:
createfile.Write("
Can someone help me out?
