Writes a single character to the stream.
Writes a character of data to the stream, beginning at the current
position. The stream may be buffered, so use flush or close
to be certain that any buffered changes have been applied. Throws a StreamNotOpenException if the stream is not open for writing. Throws a
WriteAppendOnlyException if the platform only supports appending to the
end of a value and the current stream position precedes the end of the value. Throws a
WriteOverLengthException if the platform requires the length to be
predetermined before writing and this write would exceed the predetermined length.
Syntax
public void writeChar(char data)
Parameters
- data – The character value to be written to the stream.