Reads a line of characters from the current character source.
A string containing the next line from the input stream, or null if all lines have been read. The returned string does not contain the line terminating character.
Type Reason System.IO.IOException An I/O error occurred. OutOfMemoryException There is insufficient memory to allocate a buffer for the returned string. ArgumentOutOfRangeException The number of characters in the next line is larger than int.MaxValue.
A line is defined as a sequence of characters followed by a carriage return (0x000d), a line feed (0x000a), Environment.NewLine, or the end of stream marker.
Operation
As described above.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0