Microsoft® Visual Basic® Scripting Edition
Close Method
 Language Reference 
Version 2 

See Also                    Applies to


Description
Closes an open TextStream file.
Syntax
object.Close

The object is always the name of a TextStream object.

Remarks
The following example illustrates use of the Close method to close an open TextStream file:
Sub CreateAFile
  Set fso = CreateObject("Scripting.FileSystemObject")
  Set a = fso.CreateTextFile("c:\testfile.txt", True)
  a.WriteLine("This is a test.")
  a.Close
End Sub