csv :: CsvWriter :: write_line
The representation of each cell is determined by to_s
.
# Append the specified record.
#
# The representation of each cell is determined by `to_s`.
fun write_line(line: Array[Object]) do
var os = ostream
var esc = delimiter
var sep = separator
var eol = eol
for i in [0 .. line.length - 1[ do
os.write(line[i].to_s.escape_to_csv(sep, esc, eol))
os.write_char(sep)
end
os.write(line.last.to_s.escape_to_csv(sep, esc, eol))
os.write(eol)
end
lib/csv/csv.nit:208,2--222,4