The Interface:NewImportTable function creates an object that provides facilities to assist in the import of information from CSV files. These facilities are described below.


Define a field in the import table. Fields should be defined in the order they must appear in the input file. Name is the name of the field. Format is how to render default values, options are anything acceptable to string.format(). Default is the value to assume when not explicitly set in the record, it's subjected to the formatting defined above. Description is purely for documentation purposes. Each field must be defined before the first call to ImportTable:records()


This is an iterator for the input CSV file. Use it in a for loop like this:

for record in table:records() do
 …  whatever