ASP Close 方法
2018-09-15 21:07 更新
ASP Close 方法

Close 方法关闭一个打开的 TextStream 文件。
语法
TextStreamObject.Close
实例
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.CreateTextFile("c:\test.txt",true)
f.WriteLine("Hello World!")
f.Close
set f=nothing
set fs=nothing
%>
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.CreateTextFile("c:\test.txt",true)
f.WriteLine("Hello World!")
f.Close
set f=nothing
set fs=nothing
%>

以上内容是否对您有帮助:
更多建议: