class

CsvWriter

@Js
class CsvWriter : Obj

Write Haystack data in CSV format.

constructors make

Wrap output stream

fields newline

Newline string

stripUnits

Strip units from all numbers

delimiter

Delimiter character

showHeader

Include the column names as a header row

methods writeGrid

Write grid as CSV and return this

flush

Flush the underlying output stream and return this

close

Close the underlying output stream

close Bool close()

Close the underlying output stream

delimiter Int : delimiter

Delimiter character; defaults to comma.

flush This flush()

Flush the underlying output stream and return this

make new make(OutStream out, Dict? opts)

Wrap output stream

newline Str : newline

Newline string; defaults to "\n"

showHeader Bool : showHeader

Include the column names as a header row

stripUnits Bool : stripUnits

Strip units from all numbers

writeGrid virtual This writeGrid(Grid grid)

Write grid as CSV and return this

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST