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


objects constants operators statements functions properties methods







METHOD:  TextStream.Close

object.Close

This method is used to close a currently open TextStream file.

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