loadCSV(file, [delimiter])

Reads the contents of a CSV file and returns a CSV-object array with the data. If the file is specified by name as string, the path can point either directly at a file in the document’s data directory or be specified as an absolute path.

Type: function

Parameter(s):

  • file {String | File}:

    The CSV file name in the document’s data directory, an absolute path to a CSV file, a File instance or an URL.

  • delimiter {String} Optional:

    optional character[s] used to separate data.

Returns:

  • {Object}:

    The resulting data object.