TextStream.WriteBlankLines()
JScript2.0+Syntax
textstream.WriteBlankLines(num)
Description
The WriteBlankLines() method of an instance of the TextStream object is used to write num newline characters to the text file.
Example
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).
Listing 9.135 Using the WriteBlankLines() Method
// 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 ... |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.