Click or drag to resize

StreamReaderRead(Char, Int32, Int32) Method

Reads a maximum of count characters from the current stream into buffer, beginning at index.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public override int Read(
	char[] buffer,
	int index,
	int count
)

Parameters

buffer  Char
When this method returns, contains the specified character array with the values between index and (index + count - 1) replaced by the characters read from the current source.
index  Int32
The index of buffer at which to begin writing.
count  Int32
The maximum number of characters to read.

Return Value

Int32
The number of characters that have been read, or 0 if at the end of the stream and no data was read. The number will be less than or equal to the count parameter, depending on whether the data is available within the stream.
Exceptions
ExceptionCondition
ArgumentException The buffer length minus index is less than count.
ArgumentNullException buffer is null.
ArgumentOutOfRangeException index or count is negative.
IOException An I/O error occurs, such as the stream is closed.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also