fmt/csv#

type csv

An open CSV file.

meth csv(Path: string, Mode: string): csv

Opens the file at Path for reading or writing as a CSV depending on the value of Mode.

meth (Csv: csv):close

Closes Csv.

meth (Csv: csv):read: list | nil

Returns the new row from Csv or nil if there are no more rows.

meth (Csv: csv):write(Row: list): csv

Writes a row to Csv.