Reads the next character from the input stream.
The returned value is-1 if no more characters are available. This default method simply returns-1.
[Visual Basic] Overloads Overridable Public Function Read() As Integer [C#] public virtual int Read(); [C++] public: virtual int Read(); [JScript] public function Read() : int;
The next character from the input stream, or-1 if no more characters are available.
Exception Type | Condition |
---|---|
IOException | An I/O error occurs. |
TextReader Class | TextReader Members | System.IO Namespace | TextReader.Read Overload List