METHOD:  TextStream.Write

object.Write

This method writes a supplied string to the begining of a TextStream file if opened for writing (provided it is the first write since opening the file); if the file is open for appending, the string will be added to the end of the file.

Code:
<%
Dim filesys, testfile 
Set filesys = CreateObject("Scripting.FileSystemObject") 
Set testfile= filesys.CreateTextFile("c:\somefile.txt", True) 
testfile.Write "Your text goes here."
testfile.Close  
%>

Copyright 1999 by Infinite Software Solutions, Inc.
Trademark Information