Class TextStream (Scripting VBA)

Facilitates sequential access to file.

The classes File, FileSystemObject and Folder. give access to class TextStream

Methods

Close - Closes an open TextStream file.

Read - Reads a specified number of characters from a TextStream file and returns the resulting string.

ReadAll - Reads an entire TextStream file and returns the resulting string.

ReadLine - Reads an entire line (up to, but not including, the newline character) from a TextStream file and returns the resulting string.

Skip - Skips a specified number of characters when reading a TextStream file.

SkipLine - Skips the next line when reading a TextStream file.

Write - Writes a specified string to a TextStream file.

WriteBlankLines - Writes a specified number of newline characters to a TextStream file.

WriteLine - Writes a specified string and newline character to a TextStream file.

Properties

AtEndOfLine read-only property that returns True if the file pointer immediately precedes the end-of-line marker in a TextStream file; False if it does not.

AtEndOfStream read-only property that returns True if the file pointer is at the end of a TextStream file; False if it is not.

Column specifies one or more items in a ListBox or ComboBox.

Line read-only property that returns the current line number in a TextStream file.