Ok im learnign asp, I posted this here because it gets so much more traffic. Heres my question. using asp and the FileSystemObject how do I output to a text file? I know how to input just not output. Thanks
Printable View
Ok im learnign asp, I posted this here because it gets so much more traffic. Heres my question. using asp and the FileSystemObject how do I output to a text file? I know how to input just not output. Thanks
<%
set objFSO = createObject ("scripting.FileSystemObject")
if (objFSO.FileExists (lcase(Server.Mappath(" -- insert the path to the text or html file here -- ")))) then
set objTextStreamIn = objFSO.OpenTextFile (lcase(Server.Mappath("the path")))
StrFile = objTextStreamIn.ReadAll
objTextStreamIn.close
set objTextStreamIn = nothing
end if
%>