Skip to main content

Read to table

Read a CSV or delimited text file, or an open CSV/TXT session, into a table.

Command in the CSV/TXT toolkit · id ooa.csv/read · 10 inputs, 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
PathFileNoFile path (or use an open session).
DelimiterStringNo,Field delimiter: , ; | tab, newline (one value per line), or regional (the Windows list separator: ; when the machine's decimal separator is a comma, otherwise ,).
First row is the headerBooleanNotrueFirst row holds column names.
EncodingStringNoutf-8Text encoding: auto (the file's own: a byte order mark, else UTF-8 when it fits, else windows-1252), utf-8, utf-8-bom, ansi, unicode, utf-16, windows-1251 ...
TrimStringNononeRemove spaces at the start and/or end of every value.
Skip linesNumberNo0Lines to skip at the top of the file, before the header.
Maximum rowsNumberNoRead at most this many data rows; all when empty.
Skip empty rowsBooleanNofalseLeave out rows whose values are all empty (blank lines are always skipped).
Detect numbers and datesBooleanNofalseTurn values that are clearly numbers, true/false or ISO dates (2026-10-23) into typed values; codes with leading zeros stay text.
SessionStringNoRead the table of this open CSV/TXT session instead of a file (the reading options are those of its Open step).

Outputs​

OutputTypeWhat it is
tableTableTable of text values (typed values with detect_types).
row_countNumberNumber of data rows.