- Index
- »
- io
- »
- func:ioReadCsv
def
func:ioReadCsv
ioReadCsv(handle, opts: null)
Read a CSV (comma separated values) file into memory as a Grid. CSV format is implemented as specified by RFC 4180:
- rows are delimited by a newline
- cells are separated by
delimiterchar - cells containing the delimiter,
"double quote, or newline are quoted; quotes are escaped as"" - empty cells are normalized into null
The following options are supported:
- delimiter: separator char as string, default is ","
- noHeader: if present then don't treat first row as col names, instead use "v0", "v1", etc
Also see ioStreamCsv(), ioEachCsv(), ioWriteCsv(), and CSV.