Phương thức Close của ASP

Định nghĩa và cách sử dụng

Phương thức Close đóng một TextStream tệp mở.

cú pháp:

TextStreamObject.Close

thực thể

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