Reads the next character from the underlying stream and advances the current position of the stream in accordance with the Encoding used and perhaps the particular character being read from the stream.
[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 characters are currently available. This default constructor returns-1.
Exception Type | Condition |
---|---|
IOException | The stream is a null reference (in Visual Basic Nothing) or not open. |
BinaryReader Class | BinaryReader Members | System.IO Namespace | BinaryReader.Read Overload List