read¶
Syntax¶
Parameters¶
file-name- The name of comma-separated file, surrounded by quotes. The
file-namemay include the path to the file. column-number- The index of the column to be read. Columns are indexed starting with
0. If omitted,0is assumed.
Returns¶
Returns a list of values.
Description¶
Returns a list of values composed of the values read from one column of a comma-separated file. If the column number is not specified, the first column (column 0) is used.
Empty lines in the file are ignored.
Lines with a non-numeric value in the first column are ignored.
An error occurs if the file is not found, or if the
column-number does not exist.