BinaryReader.Read Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Reads characters from the underlying stream and advances the current position of the stream in accordance with the Encoding used and the specific character being read from the stream.
Assembly: mscorlib (in mscorlib.dll)
Return Value
Type: System.Int32The next character from the input stream, or -1 if no characters are currently available.
| Exception | Condition |
|---|---|
| IOException | An I/O error occurs. |
| ObjectDisposedException | The stream is closed. |
BinaryReader does not restore the file position after an unsuccessful read.
Show: