8.18
top
← prev up next →

ez-csvπŸ”— i

Steven Leibrock

(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.

1InstallationπŸ”— i

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)

2UsageπŸ”— i

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)

top
← prev up next →

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /