Click or drag to resize

BinaryWriterWrite(Char, Int32, Int32) Method

Writes a section of a character array to the current file and advances the current file pointer in accordance with the encoding used and perhaps the specific characters being written to the file.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public virtual void Write(
	char[] chars,
	int index,
	int count
)

Parameters

chars  Char
A character array containing the data to write.
index  Int32
The starting point in chars at which to begin writing.
count  Int32
The number of characters to write.
Exceptions
ExceptionCondition
IOExceptionAn I/O error occurs.
ObjectDisposedExceptionThe file is closed.
ArgumentExceptionThe chars length minus index is less than count.
ArgumentNullExceptionchars is null.
ArgumentOutOfRangeExceptionindex or count is negative.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also