Reads the stream from the current position to the end of the stream.
A int containing the 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 the empty string ("").
Type Reason System.IO.IOException An I/O error occurred. OutOfMemoryException There is insufficient memory to allocate a buffer for the returned string.
Note:This method overrides TextReader.ReadToEnd .
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0