Reads the next character from the input stream and advances the character position within the stream by one character.
[Visual Basic] Overloads Overrides Public Function Read() As Integer [C#] public override int Read(); [C++] public: override int Read(); [JScript] public override 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 or the input stream is null. |
StreamReader Class | StreamReader Members | System.IO Namespace | StreamReader.Read Overload List