IWshTextStream
Scriptable object
Description
WScript ITextStream Emulation object
Properties
| Property | Description |
|---|---|
| AtEndOfLine | Returns true if the file pointer is positioned immediately before the end-of-line marker in a TextStream file; false if it is not. Read-only |
| AtEndOfStream | Returns true if the file pointer is at the end of a TextStream file; false if it is not. Read-only |
| Column | Read-only property that returns the column number of the current character position in a TextStream file |
| Line | Read-only property that returns the current line number in a TextStream file |
Methods
| Method | Description |
|---|---|
| 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 a complete 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 |