2.2.2 Reading records
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • Managing external tables for SWI-Prolog
        • Managing external tables
          • Accessing a table
            • Reading records
              • read_table_record/4
              • read_table_fields/4
              • read_table_record_data/4
Availability::- use_module(library(table)).(can be autoloaded)
read_table_record(+Handle, +Start, -Next, -Record)
Read a record from the table. Handle is a handle as returned by new_table/4. Start is the location of a record. If Start does not point to the start of a record, this predicate searches backwards for the starting position. Record is unified with a term constructed from the functor associated with the table (default name record and arity the number of not-skipped columns), each of the arguments containing the converted data. An error is raised if the data could not be converted. Next is unified with the start position for the next record.