8 Fév
2007
8 Fév
'07
16:03
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