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.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual void Write(
char ch
)
Parameters
- ch
- Type: SystemChar
The non-surrogate, Unicode character to write.
Exceptions Exception | Condition |
---|
IOException | An I/O error occurs. |
ObjectDisposedException | The stream is closed. |
ArgumentException | ch is a single surrogate character. |
See Also