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

# csv_read_row(+Stream, -RowList)

Read one row of comma separated values (approximate)

Stream
  Stream name or handle
RowList
  List of numbers and strings, or 'end_of_file' (output)

## Description

Reads one row of comma separated values from Stream, and returns the result as a list. On end of file, returns the atom 'end_of_file'.

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

Shortcomings: as oppsed to csv_read/3, this predicate here uses the ECLiPSe parser to read rows, and does not implement the cvs format fully. E.g. empty fields are not handled and yield a syntax error.

### Modes and Determinism

- csv_read_row(+, -) is det

## See Also

number_string / 2, csv_read / 3