Data Type: TextStream object
Any property or object variable returning a readable TextStream object.
Data Type: Long
The number of characters you want to read from the input stream.
Reads a given number of characters from a file or the standard input and returns the resulting string.
Files opened for writing or appending can’t be read; you
must first close the file and reopen it using the
After the read operation, the file pointer advances
Characters characters, unless the end
of the file is encountered.
If the number of characters available to be read are less
Characters, all characters will
When reading the standard input stream from the keyboard,
program execution pauses until an end-of-line or end-of-stream
character is encountered. However, only the first
Characters characters of the stream
are read. If at least
characters are available in the input stream for subsequent read
operations, program execution does not pause to wait for further
keyboard input. The usual technique is to process keystrokes in
a loop until the end-of-stream marker is encountered. For
Do While Not oIn.AtEndOfStream sIn = oIn.Read(10) ' Read up to 10 characters ' process text Loop