ÄúµÄλÖãº
Ñ°ÃÎÍøÊ×Ò³
£¾
±à³ÌÀÖÔ°
£¾
VBScript
£¾
VBScript
objects
constants
operators
statements
functions
properties
methods
All Methods
TextStream Object
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
%>