Current Page: NeXtMidas Training Primitives Files in a Primitive Reading Record-Based Data
| Reading record based data. The methods in the `ListFile` interface provide the easiest way. Many file types implement `ListFile`, including: `CsvFile`, `DataFile`, `DbfFile` (read only), `TextFile` (read only). Read the row definitions using: `Table allDefs = inFile.getRecordDefs()`, or `Table aDef = inFile.getRecordDef(<index>)` and `int numDefs = inFile.getRecordDefCount()` Get the number of rows using: `double numRows = inFile.getNumberOfRows()` Read in a row of data using: `Table data = inFile.getDataTable(<offset>)` (`<offset>` is the row number [0..N-1]). Returns a table with `<COLNAME>=<VALUE>` entries.