Click or drag to resize
BinaryWriterWrite Method (Char)
Writes a character array to the current stream and advances the current position of the stream in accordance with the Encoding used and the specific characters being written to the stream.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual void Write(
	char[] chars
)

Parameters

chars
Type: SystemChar
A character array containing the data to write.
Exceptions
ExceptionCondition
ArgumentNullExceptionchars is null.
ObjectDisposedExceptionThe stream is closed.
IOExceptionAn I/O error occurs.
See Also