|
-
Jul 4th, 2000, 04:54 PM
#2
Addicted Member
Hi,
To make a text file use this code:
<%
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set File = FSO.CreateTextFile("pathtofile.txt")
File.Save
%>
To read a file line by line use:
<%
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set File = FSO.OpenTextFile("pathtofile.txt")
Do While Not File.AtEndOfStream
sLine = File.ReadLine
Response.Write sLine
Loop
%>
If you want more examples just let me know.
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
|