Click or drag to resize

TextReaderReadToEnd Method

Reads all characters from the current position to the end of the TextReader and returns them as one string.

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

Return Value

String
A string containing all characters from the current position to the end of the TextReader.
Exceptions
ExceptionCondition
ObjectDisposedException The CrestronIO.TextReader is closed.
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 System.Int32.MaxValue
InvalidDirectoryLocationExceptionInvalid destination directory.
IOExceptionFile System error while attempting to open the stream.
DirectoryNotFoundExceptionInvalid directory location.
FileNotFoundExceptionThe file passed does not exist.
PathTooLongExceptionPath is great than 248 characters.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also