Skip to content

CSVWriter » write

Inserts an array into the connected csv file as a new line.

js
csv.write(array);

Parameters

  • array - An array of Strings, each element being a new colunm to be inserted in the row of the csv file.

Example

js
let csv = datasource.csv("example_file.csv"); 
let array = ["This", "is", "a", "new", "row", "of", "values", "in", "the", "csv", "file"]; 
csv.write(array);

This will insert a row with 11 separate values.