- Index
- »
- io
- »
- func:ioWriteCsv
def
func:ioWriteCsv
ioWriteCsv(val, handle, opts: null)
Write a grid to a CSV (comma separated values) file.
CSV format is implemented as specified by RFC 4180:
- rows are delimited by a newline
- cells are separated by
delimiter
char - cells containing the delimiter,
"
double quote, or newline are quoted; quotes are escaped as""
The following options are supported:
- delimiter: separator char as string, default is ","
- newline: newline string, default is "\n" (use "\r\n" for CRLF)
- noHeader: Set this option to prevent the column names from being written as a header row.
- stripUnits: write all numbers without a unit
Also ioReadCsv()
, ioEachCsv()
, and CSV.