ccsv icon indicating copy to clipboard operation
ccsv copied to clipboard

Add option to read from IO objects in addition to files

Open jpmckinney opened this issue 11 years ago • 2 comments

jpmckinney avatar Nov 09 '14 22:11 jpmckinney

This is complicated task, because it needs to put Ruby IO methods inside C-code... But merge requests are welcome!

zhum avatar Nov 14 '14 14:11 zhum

I just wrote my own library https://github.com/opennorth/fastcsv as all the others either had errors, were incompatible with Ruby's CSV, or were slow. Benchmark: https://github.com/jpmckinney/csv-benchmark

And it reads either Strings or IO objects (e.g. a File).

jpmckinney avatar Nov 14 '14 15:11 jpmckinney