klyn.io.TextWriter.writeChar
method
public writeChar(readonly c as Char) as Void throws IOException
Description

Writes one Unicode scalar value.

A BMP CodeUnit can be passed through the implicit widening conversion to Char; isolated UTF-16 surrogates are not valid text.

Parameters
ParameterDescription
cCharacter to write.
Throws
  • IOException if the resource is closed, inaccessible, not a valid file, or the underlying I/O operation fails.
Example
writer.writeChar('😀')