Click or drag to resize

StreamReaderReadToEnd Method

Reads the stream from the current position to the end of the stream.

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

Return Value

String
The rest of the stream as a string, from the current position to the end. If the current position is at the end of the stream, returns the empty string("").
Exceptions
ExceptionCondition
OutOfMemoryException There is insufficient memory to allocate a buffer for the returned string.
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