Read Write and Append Text

Uses FSO to read, write, or append text in a file

<%
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("c:\testfile.txt", ForWriting, True)
f.Write "Hello world!"


%>

Views 2549 Downloads 872


JeffSmith
26
File System Classic ASP
Revisions

v1.0