/*
object.GetStandardStream(standardStreamType [, unicode ])
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
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.
*/
break on
Dim $FSO,$sin,$sout,$Serr,$words
$fso=createobject("scripting.FileSystemObject")
$sin=createobject("scripting.TextStream")
$sout=createobject("scripting.TextStream")
$sin = $FSO.GetStandardStream(0)
$sout = $FSO.GetStandardStream(1)
$serr = $FSO.GetStandardStream(2)
$sout.WriteLine "Hello!"+@crlf
$sout.WriteLine "What's the word?"+@crlf
$Words = $sin.ReadLine()
$sout.WriteLine "So, the word is " + $Words+@crlf
$sout = ''
$sin = ''
get $