Hi
I am trying to debug my app and I want to spit some info to a text file (append) but for some reason this Sub I wrote doesn't work... Can you see what am I doing wrong ?
Thank you
Sergei
I am trying to debug my app and I want to spit some info to a text file (append) but for some reason this Sub I wrote doesn't work... Can you see what am I doing wrong ?
Code:
Sub DumpToFile2(strOut)
'______________________
'*START* Write to file
'______________________
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, f, ReadAllTextFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile(Server.MapPath("ErrorDump2.txt"), ForAppending, True)
ReadAllTextFile = f.ReadAll
f.Write ReadAllTextFile & strOut & "tt"
f.Close
'____________________
'*END* Write to file
'____________________
End Sub
Thank you
Sergei