Click or drag to resize

TextReaderReadLine Method

Reads a line of characters from the current stream and returns the data as a string.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public abstract string? ReadLine()

Return Value

String
The next line from the input stream, or null if all characters have been read.
Exceptions
ExceptionCondition
IOException An I/O error occurs.
OutOfMemoryException There is insufficient memory to allocate a buffer for the returned string.
ObjectDisposedException The CrestronIO.TextReader is closed.
ArgumentOutOfRangeException The number of characters in the next line is larger than System.Int32.MaxValue

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also