TextStream

JScript2.0+Syntax

Core JScript object created by calling the CreateTextFile() method of the FileSystemObject object.

Description

The TextStream object is created by calling the CreateTextFile() method of an instance of the FileSystemObject. An instance of the TextStream object is created by calling the CreateTextFile() method of the FileSystemObject object.

Table 9.17 contains a list of methods and properties of the TextStream object.

Table 9.17. Methods and Properties of the TextStream Object
TypeItemDescription
MethodClose()Closes the file
 Read()Reads in a specified number of characters
 ReadAll()Reads the entire file
 ReadLine()Reads a line of the file up to the newline character
 Skip()Skips the specified number of characters
 SkipLine() ...

Get Pure JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.