FileStream.ReadByte Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Reads a byte from the file and advances the read position one byte.
Assembly: mscorlib (in mscorlib.dll)
Return Value
Type: System.Int32The byte, cast to an Int32, or -1 if the end of the stream has been reached.
| Exception | Condition |
|---|---|
| NotSupportedException | The current stream does not support reading. |
| ObjectDisposedException | The current stream is closed. |
Show: