Zum Hauptinhalt springen

Write CSV file

XML
<file:writecsv var="var" filename="string" delimiter=";"/>

<file:writecsv /> writes a multidimensional array as comma-separated values to a file.

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:writecsv /> is the complement of the <file:readcsv /> operation.

Attributes

NameTypeDescriptionDefined By
varvarVariable name file:writecsv
filenamestringFilename/URL file:writecsv
delimiterstringDelimiter (single ASCII character) file:writecsv