VBScript » TextStream » Write

Version: 2.0

Syntax:
object.Write(string)

This method writes a supplied string to an open TextStream file.

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.

Examples

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
%>