PTextReader.ReadToEnd Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads all characters from the current position to the end of the TextReader and returns them as one string.
public:
override System::String ^ ReadToEnd();
public override string ReadToEnd ();
override this.ReadToEnd : unit -> string
Public Overrides Function ReadToEnd () As String
Returns
A string containing all characters from the current position to the end of the TextReader.
Exceptions
The number of characters in the next line is larger than MaxValue
An I/O error occurs.
There is insufficient memory to allocate a buffer for the returned string.
The TextReader is closed.