August 1999
Intermediate to advanced
1488 pages
72h 53m
English
textstream.WriteBlankLines(num)
The WriteBlankLines() method of an instance of the TextStream object is used to write num newline characters to the text file.
Listing 9.135 opens a text file and writes a string to it. The WriteBlankLines() method is then used to place a newline before a second string is written. 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", 2, true) // Write the first ... |
Read now
Unlock full access