Class OutputLineStream

Text file writer which supports different text file formats

class OutputLineStream;

Constructors

NameDescription
this (stream, filename, format) create

Fields

NameTypeDescription
_buf char[]
_filename string
_firstLine bool
_format TextFileFormat
_len int
_stream OutputStream
MAX_BUFFER_SIZE immutable(int)

Methods

NameDescription
close () close stream
writeLine (line) write single line
convertAndWrite (s) convert character encoding and write to output stream
flush ()