Ai Modules ====== CSV File Reader ====== ^ section | File IO | ^ short description | reads data from an external file | ^ licence level | Miami | ^ ports | String Out [multipurpose/string] -- the output string | ^ ::: | Column Index [control/numeric] -- input the 0-based index of the column to read from | ^ ::: | Row Index [control/numeric] -- input the 0-based index of the row to read from \\ (the very top row is reserved for column headers, hence row #0 reads from the second row of the file | ^ ::: | Numeric Output [control/numeric] -- the output as number (if it can be read as number) | ^ ::: | Source File Name [multipurpose/string] | ^ parameter | Live CSV Update [togglebutton] -- whether to update immediately when the input file changes | ^ ::: | Set File [pushbutton] -- opens a file frowser to select the input file | ^ ::: | File [textarea/readonly] -- shows the selected input filename | ^ ::: | n Columns [input/numeric] -- sets the max. number of columns to read | ^ skins | [Default], Filename Input | The cells can be separated by commas, or with semi-colons: Head column 1, Head column 2 Cell Line 1, 123 Cell Line 2, 456 ==== used in example ==== {{backlinks>.#ai:examples}} ===== Manual ===== > Allows a comma separated value file (CSV file) to be read according to user specified column and rows and outputs the value. > {{:ai:modules:file_io:csv_file_reader.png|}}