![]() |
![]() |
|||||||||||||||||||||||||
|
Close |
Closes an open stream. |
Read |
Reads a specified number of characters from a stream. |
ReadAll |
Reads an entire stream. |
ReadLine |
Reads an entire line from a stream. |
Skip |
Skips a specified number of characters when reading a stream. |
SkipLine |
Skips the next line when reading a stream. |
Write |
Writes a specified string to a stream. |
WriteBlankLines |
Writes a specified number of newline characters to a stream. |
WriteLine |
Writes a specified string and newline character to a stream. |
Properties
AtEndOfLine |
True if the file pointer is before the end-of-line marker. |
AtEndOfStream |
True if the file pointer is at the end of the stream |
Column |
The column number of the current character in the stream. |
Line |
The current line number of the stream. |
Syntax
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.
Remarks
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
WriteLine and Close are two methods of the TextStream object.Copyright © 2000 Chili!Soft