METHOD:  TextStream.Write

Implemented in version 2.0
 
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-2004 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information