Microsoft® JScript Close Method |
Language Reference Version 2 |
Closes an open TextStream file.
object.Close( );The object is always the name of a TextStream object.
The following example illustrates use of the Close method:
var fso; fso = new ActiveXObject("Scripting.FileSystemObject"); a = fso.CreateTextFile("c:\\testfile.txt", true); a.WriteLine("This is a test."); a.Close();
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.