StreamReaderReadLine Method |
Reads a line of characters from the current stream and returns the data as a string.
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public override string ReadLine()
Return Value
Type:
StringThe next line from the input stream, or null if the end of the input stream is reached.
Exceptions Exception | Condition |
---|
OutOfMemoryException | There is insufficient memory to allocate a buffer for the returned string. |
IOException | An I/O error occurs. |
See Also