TextReader.Read Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Reads the next character from the input stream and advances the character position by one character.
Assembly: mscorlib (in mscorlib.dll)
Return Value
Type: System.Int32The next character from the input stream, or -1 if no more characters are available. The default implementation returns -1.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The TextReader is closed. |
| IOException | An I/O error occurs. |
Show: