|
-
Sep 2nd, 2002, 10:40 AM
#1
Thread Starter
Addicted Member
How to write to a text file!?!?!
How do you use asp to write to a text file...If you know and you have the time could you wite me an asp file that will write to a text file in the same directory. Thanks a lot.....
-
Sep 11th, 2002, 08:13 PM
#2
Addicted Member
Imports System.IO
Imports System.Net
----In your code
Dim myFileStream as StremWriter
Dim myData As String = "Some Data"
myFileStream = File.CreateText(Server.MapPath("/your_virtual_directory_that_your_asp_page_is_in") & "\your_textfile")
myFileStream.WriteLine(myData)
myFileStream.Close()
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
|