Read CSV file
XML
<file:readcsv var="var" filename="string" delimiter=";"/>
<file:readcsv /> reads each line of a file, whereby parsing comma-separated values into a multidimensional array.
Comma-separated values represent tabular data. Each line corresponds to a row in the table. Within a line, fields are separated by a delimiter, each field belonging to one table column.
<file:readcsv /> is the complement of the <file:writecsv /> operation.
Attributes
| Name | Type | Description | Defined By |
|---|---|---|---|
| var | var | Result variable name | file:readcsv |
| filename | string | Filename/URL | file:readcsv |
| delimiter | string | Delimiter (single ASCII character) | file:readcsv |
Results
| Binding | Type | Predicate |
|---|---|---|
| var | array | no-result-propagation |