Mono Class Library: System.IO.TextReader Overview | Members

System.IO.TextReader.ReadToEnd Method

Reads all characters from the current position in the character source to the end of the source. [Edit]

public virtual string ReadToEnd ()

Returns

A string containing all characters from the current position to the end of the character source. [Edit]

Exceptions

TypeReason
System.IO.IOException An I/O error occurred. [Edit]
OutOfMemoryExceptionThere is insufficient memory to allocate a buffer for the returned string. [Edit]
ArgumentOutOfRangeExceptionThe number of characters from the current position to the end of the underlying stream is larger than int.MaxValue. [Edit]

Remarks

Operation
As described above. [Edit]

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0