August 1999
Intermediate to advanced
1488 pages
72h 53m
English
textstream.SkipLine()
The SkipLine() method of an instance of the TextStream object skips the next line.
Listing 9.133 opens two files. The first file is for reading a string from, while the second file is written to. The SkipLine() method is used to skip the first line before the file is read. 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 to read from and one to write to var myInputTextStream = myFileSysObj.OpenTextFile("c:\\temp\\test.txt", 1, true); var myOutputTextStream ... |
Read now
Unlock full access