A Textstream object is returned by the StdErr, StdIn and StdOut properties of the WScript object. For full details of this object and its properties and methods, see the VBScript Textstream object Quick Reference.
Syntax: object.AtEndOfLine
Returns a Boolean value. If the file pointer is positioned immediately before the file's end-of-line marker, the value is True, and False otherwise.
Syntax: object.AtEndOfStream
Returns a Boolean value. If the file pointer is positioned at the end of a file, the value is True, and False otherwise.
Syntax: object.Column
Returns the current position of the file pointer within the current line. Column 1 is the first character in each line.
Syntax: object.Line
This property returns the current line number in a text file.
Syntax: object.Close
Closes a currently open TextStream file.
Syntax: object.Read(characters)
This method reads the number of characters you specify from a Textstream file and returns them as a string.
Syntax: object.ReadAll
This method reads the entire contents of a text file and returns it as a string.
Syntax: object.ReadLine
Reads a single line (excluding the newline character) from a TextStream file and returns the contents as a string.
Syntax: object.Skip(characters)
Causes the file pointer to skip a specified number of characters when reading a TextStream file. Can be a positive or negative number.
Syntax: object.SkipLine
Moves the file pointer from its current position to the beginning of the next line.
Syntax: object.Write(string)
This method writes the parameter string to an open TextStream file.
Syntax: object.WriteBlankLines(lines)
Used to write a number of consecutive newline characters (defined with the lines parameter) to a TextStream file.
Syntax: object.WriteLine([string])
Writes the optional parameter string to a TextStream file, followed by a new line character.