Reads the stream from the current position to the end of the stream.
[Visual Basic] Overrides Public Function ReadToEnd() As String [C#] public override string ReadToEnd(); [C++] public: override String* ReadToEnd(); [JScript] public override function ReadToEnd() : String;
The entire stream as a string.
Exception Type | Condition |
---|---|
IOException | The stream is a null reference (in Visual Basic Nothing). |
For better performance, call Read (char[], int, int) with a buffer the same size as the StreamReader's internal buffer.
StreamReader Class | StreamReader Members | System.IO Namespace