Returns the next available character without actually reading it from the input stream, and does not advance the byte or character position within the stream.
[Visual Basic] Overridable Public Function PeekChar() As Integer [C#] public virtual int PeekChar(); [C++] public: virtual int PeekChar(); [JScript] public function PeekChar() : int;
The next available character.
Exception Type | Condition |
---|---|
IOException | The stream is a null reference (in Visual Basic Nothing) or not open. |
BinaryReader Class | BinaryReader Members | System.IO Namespace