Skip to content

Read CSV

Type: read-csv  ·  Package: CSV Activities v1.0.0  ·  Output: DataTable

Reads a CSV file and returns its contents as a DataTable, ready to traverse, filter, or dump to another source.

Read the file from path using the indicated delimiter. By default it takes the first row as headers (hasHeader = true), so you access cells by name.

ParameterEditorDescription
pathexpressionCSV file path.
ParameterEditorDescription
delimitertextField separator. By default ",". Use ";" or tab depending on your file.
hasHeaderbooleanThe first row is the headers. By default true.
encodingtextCoding. By default "utf-8".

Returns a DataTable.

Read CSV path = = asset("clientes.csv") delimiter = ";" → output: clientes
For Each items = = clientes itemVariable = fila
└─ activities:
Log message = = str(row["Nombre"]) + " — " + str(row["Correo"])