| StreamReaderReadToEnd Method |
Reads the stream from the current position to the end of the stream.
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntaxpublic override string ReadToEnd()
Return Value
Type:
StringThe rest of the stream as a string, from the current position to the end. If the current position is at the end of the stream, returns an empty string ("").
Exceptions| Exception | Condition |
|---|
| OutOfMemoryException | There is insufficient memory to allocate a buffer for the returned string. |
| IOException | An I/O error occurs. |
See Also