Help,
How do I write from an ASP page to a text file on the Server. I want to capture a couple of values and save them to C:\testing.txt on my Server.
This is quite urgent as my site is failing..........
Printable View
Help,
How do I write from an ASP page to a text file on the Server. I want to capture a couple of values and save them to C:\testing.txt on my Server.
This is quite urgent as my site is failing..........
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\testing.txt", True)
a.WriteLine("This is a test.")
a.Close
Thanks, brilliant solution, works great.
I'm a VB developer and considered this but thought I'd need to put in a reference to the Scripting Runtime. This just works and is brilliant.
Cheers