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