GetStandardStream Method
Returns a TextStream object corresponding to the standard input, output, or error stream.
Syntax
object.GetStandardStream(standardStreamType [, unicode ])
Arguments
standardStreamType
Required. Can be one of three constants: StdErr, StdIn, or StdOut.unicode
Optional. Boolean value that indicates whether the file is created as a Unicode or ASCII file. The value is true if the file is created as a Unicode file, false if it is created as an ASCII file. If omitted, an ASCII file is assumed.
Settings
The standardStreamType can have any of the following settings:
Constant |
Value |
Description |
---|---|---|
StdIn |
0 |
Returns a TextStream object corresponding to the standard input stream. |
StdOut |
1 |
Returns a TextStream object corresponding to the standard output stream. |
StdErr |
2 |
Returns a TextStream object corresponding to the standard error stream. |