---
url: /process-functions/csvwriter-write.md
description: Inserts an array into the connected csv file as a new line.
---

# 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);
```
