Skip to main content

Open

Open a CSV or delimited text file as a named session, read once, for Read and Each row steps.

Command in the CSV/TXT toolkit · id ooa.csv/open · 10 inputs (1 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
PathFileYesFile path.
SessionStringNocsvSession name for later steps.
First row is the headerBooleanNotrueFirst row holds column names.
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 ,).
TrimStringNononeRemove spaces at the start and/or end of every value.
EncodingStringNoautoText 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 ...
Skip linesNumberNo0Lines to skip at the top of the file, before the header.
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 into typed values; codes with leading zeros stay text.
Agents this one runs may use itBooleanNofalseAgents started from this one with Run agent may use this session by its name.

Outputs​

OutputTypeWhat it is
row_countNumberNumber of data rows.
columnsListColumn names.