TextStream object of FileSystemObject component is related to
manipulating the contents of a text file sequentially. Unlike other object in
the FileSystemObject component, the TextSteam object returned from the
FileSystemObject object provides an intermediate variable placeholder as the
representation of the contents of the sequential text stream of the text file
for manipulation.
Methods
Method
Description
Close
to close the specified TextStream object instance if opened.
Read
to read and return a specified number of characters from the specified
TextStream object instance.
ReadAll
to read and return all entire TextStream
characters from the specified TextStream object instance.
ReadLine
to read and return one entire line of TextStream characters,
excluding the newline character, from the specified
TextStream object instance.
Skip
to skip the returning of a specified number of TextStream
characters from the specified
TextStream object instance during reading.
SkipLine
to skip the returning of next entire line of TextStream
characters from the specified
TextStream object instance during reading.
Write
to write the specified string to the specified
TextStream object instance.
WriteBlankLines
to
write the specified number of newline characters to the specified
TextStream object instance.
WriteLine
to
write the specified string and a newline character to the specified TextStream object instance.
Properties
Property
Description
AtEndOfLine
a read only property to check whether the file pointer is positioned immediately
before the end-of-line marker in the specified TextStream object instance or
not.
AtEndOfStream
a read only property to check whether the file pointer is positioned immediately
at the end of the specified TextStream object instance or not.
Column
a read only property
to get the column number of the current character position in the specified file object instance.
Line
a read only property to get the line number of the current line position in the specified file object instance.
Remarks
The methods and properties of TextStream object can be grouped into
TextStream Inforamtion: AtEndOfLine; AtEndOfStream; Column; Line