VBScript » TextStream » Close

Version: 2.0

Syntax:
object.Close

Closes a currently open TextStream file.

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

Examples

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