|
The VBScript TextStream object facilitates sequential access to a file.
Closes an open stream. | |
Reads a specified number of characters from a stream. | |
Reads an entire stream. | |
Reads an entire line from a stream. | |
Skips a specified number of characters when reading a stream. | |
Skips the next line when reading a stream. | |
Writes a specified string to a stream. | |
Writes a specified number of newline characters to a stream. | |
Writes a specified string and newline character to a stream. |
True if the file pointer is before the end-of-line marker. | |
True if the file pointer is at the end of the stream | |
The column number of the current character in the stream. | |
The current line number of the stream. |
TextStream.{property | method}
The property and method argument can be any of the properties and methods associated with the TextStream object.
Note
In actual usage, TextStream is replaced by a variable placeholder representing the TextStream object returned from the FileSystemObject.
In the following code, a is the TextStream object returned by the CreateTextFile method on the FileSystemObject:
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\testfile.txt", True)
a.WriteLine("This is a test.")
a.Close
VBScript TextStream Object WriteLine Method and VBScript TextStream Object Close Method are two methods of the TextStream object.
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.