:- use_module(library(csv)).(can be autoloaded)
In addition to the options of csv_read_file/3, this predicate processes the option:
- Line is unified with the 1-based line-number from which Row is read. Note that Line is not the physical line, but rather the logical record number.
- To be done
- Input is read line by line. If a record separator is embedded in a quoted field, parsing the record fails and another line is added to the input. This does not nicely deal with other reasons why parsing the row may fail.