|
-
May 3rd, 2001, 04:10 AM
#1
Thread Starter
Addicted Member
asp write to text file help
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..........
-
May 3rd, 2001, 04:17 AM
#2
Addicted Member
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\testing.txt", True)
a.WriteLine("This is a test.")
a.Close
-
May 3rd, 2001, 04:24 AM
#3
Thread Starter
Addicted Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|