datasource.csvRead
Returns the specified csv file as an object. The returned object has multiple functions that are documented in CSV Reader.
A file may only have one instance of a CSV writer or CSV reader connected at a time. A new attempt at a reader or writer connection will result in an error.
js
datasource.csvRead(fileName, skipLines)
Parameters
fileName
- The name and file path of the csv file in MODLR file system to be read. File path can be found in the filesystem page.skipLines
- The number of lines to be skipped in the csv file.
Example
js
let csv = datasource.csvRead("budget_review_2020.csv", 0);