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

# csv_read(+File, -Rows, +Options)

Read a file containing comma separated values (csv format)

File
  File name (string or atom)
Rows
  List of lists (output)
Options
  List of options

## Description

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

- csv_read(+, -, +) is det

## See Also

number_string / 2, csv_read_row / 2