TextStream.SkipLine()

JScript2.0+Syntax

							textstream.SkipLine()

Description

The SkipLine() method of an instance of the TextStream object skips the next line.

Example

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).

Listing 9.133 Using the SkipLine() Method
 // 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 ...

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.