[ 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

DEPRECATED - use csv_read_row/3.

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 opposed to csv_read_row/3, this predicate here uses the ECLiPSe parser to read rows, and does not implement the csv format fully. E.g. empty fields are not handled and yield a syntax error. However, when applicable, it will be faster than csv_read_row/3.

Modes and Determinism

See Also

number_string / 2, csv_read / 3, csv_read_row / 3