Click or drag to resize

BinaryReaderReadChars Method

Reads the number of characters specified from the file. The data is returned in a character array and the file pointer is moved forward according to the encoding of the file.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public virtual char[] ReadChars(
	int numberOfCharactersToRead
)

Parameters

numberOfCharactersToRead  Int32
The number of characters to read.

Return Value

Char
A character array containing data read from the file.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe numberOfCharactersToRead is negative.
IOExceptionAn I/O error occurred.
ObjectDisposedExceptionThe file is closed.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also