8.16.0.1
9 The csv library
This library provides a function for reading comma-separated values (CSV) files.
procedure
Reads the CSV file input and returns its contents as a vector of vectors. The outer vector has one element for each row in the file, and each element has one element for each column in the row.
For example, a CSV file containing the following:
state,initial,capital |
Illinois,IL,Springfield |
Massachusetts,MA,Boston |
Missouri,MO,Jefferson City |
would be read into:
[['state', 'initial', 'capital'], ['Illinois', 'IL', 'Springfield'], ['Massachusetts', 'MA', 'Boston'], ['Missouri', 'MO', 'Jefferson City']]