[ library(csv) | Reference Manual | Alphabetic Index ]

csv_read(+File, -Rows, +Options)

Read a file containing comma separated values (csv format)
File name (string or atom)
List of lists (output)
List of options


Reads a file containing comma separated values, and returns the file content as a list. The file may have an optional .csv suffix.

The result list contains one element for each record in the file. Each list element is itself a list, representing a data record. The data elements are either numbers (if they can be interpreted as numbers by ECLiPSe's number_string/2 predicate), or otherwise strings.

No options are currently supported.

Modes and Determinism

See Also

number_string / 2, csv_read_row / 2