ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods







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