Click or drag to resize
StreamReaderReadLine Method
Reads a line of characters from the current stream and returns the data as a string.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public override string ReadLine()

Return Value

Type: String
The next line from the input stream, or null if the end of the input stream is reached.
Exceptions
ExceptionCondition
OutOfMemoryExceptionThere is insufficient memory to allocate a buffer for the returned string.
IOExceptionAn I/O error occurs.
See Also