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

System.IO.StringReader.ReadLine Method

Reads a line from the underlying string. [Edit]

public override string ReadLine ()

Returns

A string containing the next line from the underlying string, or null if the end of the underlying string is reached. [Edit]

Exceptions

TypeReason
ObjectDisposedExceptionThe current reader is closed. [Edit]
OutOfMemoryExceptionThere is insufficient memory to allocate a buffer for the returned string. [Edit]

Remarks

A line is defined as a sequence of characters followed by a carriage return (0x000d), a line feed (0x000a), or a carriage return immediately followed by a line feed. The resulting string does not contain the terminating character(s).

Note: This method overrides TextReader.ReadLine.

[Edit]

Requirements

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