class TextWriter
pub class TextWriter<W :: [Writer]>
A writer of text: its UTF-8, to the inner writer as it comes. It holds nothing back; a
BufWriter beneath it does, and is closed by its own name: using let b = BufWriter.new(f); let t = TextWriter.new(b);.
Methods
pub static fn new(inner: W): TextWriter<W>
pub mut fn write(s: StringView): void throws [IoError, Cancelled]
pub mut fn writeLine(s: StringView): void throws [IoError, Cancelled]
Writes s, then a \n — on every system.
Errors
Throws what the inner writer throws.