Click or drag to resize
BinaryWriterWrite Method (Char)
Writes a Unicode character 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 ch
)

Parameters

ch
Type: SystemChar
The non-surrogate, Unicode character to write.
Exceptions
ExceptionCondition
IOExceptionAn I/O error occurs.
ObjectDisposedExceptionThe stream is closed.
ArgumentExceptionch is a single surrogate character.
See Also