| Wscript.StdIn |
| Method | Description |
| Close() |
Closes a text stream. |
| Read() |
Takes an integer number as an argument and returns the specified number of characters from an input stream.
|
| ReadAll() |
Returns all characters from an input stream. The ReadAll method returns a string. |
| ReadLine() |
Reads one line from the standard input. This method also returns a string value. |
| Skip() |
Takes an integer number as an argument and skips the specified number of characters when reading from an input text
stream. The position pointer moves forward by the number of characters (bytes) specified in the argument. You cannot use
the Skip method to skip backwards through a file (negative character values are not supported). The
Skip method is limited to the open for reading mode only (you cannot skip a specified number of characters when
writing to an output stream).
|
| SkipLine() |
Skips the next line when reading from an input text stream. (The same restrictions as above are applied.) |
| Property | Description |
| AtEndOfLine |
Returns a Boolean value indicating whether the end of a line in an input stream has been reached. |
| AtEndOfStream |
Returns a Boolean value indicating whether the end of an input file (stream) has been reached. |
| Column |
Returns the column number of the current character position in an input stream. |
| Line |
Returns the current line number in an input stream. After a stream is first opened, Line will initially be 1. |
| Wscript.StdOut and WScript.StdErr |
| Method | Description |
| Close() |
Closes a text stream. |
| Write() |
Takes a string as an argument and sends it to an output stream. |
| WriteBlankLine() |
Takes an integer number as an argument and sends the specified number of blank lines (newline characters) to an output
stream. WScript.StdOut.WriteLine() is equivalent to WScript.StdOut.WriteBlankLine(1)
|
| WriteLine() |
Sends a string with a newline character to an output stream. If a string argument is omitted only the
new line character is sent to the output stream. |
In the following example we read only first ten characters from each line and then print them into the standard output: