August 1999
Intermediate to advanced
1488 pages
72h 53m
English
textstream.Close()
The Close() method of the TextStream object closes the previously opened file.
Listing 9.126 shows you how to open and close a text file. This file can be executed with the Windows Scripting Host (wscript.exe or cscript.exe).
// Create a FileSystemObject object
var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject");
// Create a TextStream object
var myTextStream = myFileSysObj.OpenTextFile("c:\\temp\\test.txt", 1, true);
// Close the stream to the file
myTextStream.Close();
|
Read now
Unlock full access