[gambit-list] fast csv parser (libcsv wrapped for gambit)
Phil Dawes
pdawes at users.sf.net
Thu Feb 8 16:03:25 EST 2007
Hi Gambit List,
I needed a fast csv parser for parsing large (multi-gig) files so I've
wrapped the libcsv c code by Robert Gamble[1]. The first cut of csv.scm
is here: http://phildawes.net/2007/gambit-csv/0.1/csv.scm
Example usage:
(define it (csv-make-iterator fname))
(it) ; returns the first row as a list
(it) ; returns 2nd row ..etc..
; (it) returns '() when it hits the end of the file.
I'm very new to gambit/scheme - is this a reasonable interface or is
there a more schemey idiom I should be presenting?
Cheers,
Phil
[1] http://sourceforge.net/projects/libcsv
More information about the Gambit-list
mailing list