Link Search Menu Expand Document

CSVDocument « [ ] Operator

Loads the data of the array object on the right side of the CSVDocument object on the left side.

The array object that can be specified on the right side must have the following structure.

Type Example Explanation
One -dimensional array
    String data [];
    
The number of elements in the array corresponds to the number of rows in the CSV data.
The number of columns is one, and data itself corresponds to a column.
Two -dimensional equivalent array
    Record rec[] {
    String data1;
    String data2;
    }
    
The number of elements in the array corresponds to the number of rows in the CSV data.
The number of columns is the number of child objects, and data1 and data2 correspond to the columns.