8.15
ez-csv
(require ez-csv) | package: ez-csv |
ez-csv is a Racket package dedicated to reading and writing CSV files. It works by reading lines of data from a CSV file, and if given the proper CSV values, will create a list of data from your CSV file that you can directly use in your Racket programs.
ez-csv works for both comma-delimited files and tab-delimited files, provided you make sure you indicate that when writing code.
1 Installation
Installation can be done via raco, which will then bring the ez-csv package into your Racket library. From there you use the standard require expression to import some of the bindings.
(require ez-csv)
2 Usage
The usage of ez-csv is simple now with the new macro system in place. We use a call to defrec to generate bindings for our CSV records.
(require ez-csv)