I replied to Phil privately, but since others have joined the conversation, I'll respond publicly.  I use the code at <a href="http://pbewig.googlepages.com/ProcessingFieldedTextFiles.pdf" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
pbewig.googlepages.com/ProcessingFieldedTextFiles.pdf</a> to process comma-delimited files and other text-formatted databases.  I've never timed it, or compared it to other code, but it's always been fast enough for what I wanted to do.  Let me know if you find it useful.
<br><br>Phil (another Phil, not the original poster)<br><br><div><span class="gmail_quote">On 2/9/07, <b class="gmail_sendername">Phil Dawes</b> <<a href="mailto:pdawes@users.sf.net">pdawes@users.sf.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Marc Feeley wrote:<br>> Interesting.  But why would you do it in C (in 600 lines of code) when
<br>> you can do it in 20 lines of Scheme?<br>><br><br>Ignorance maybe!<br>There's a little more to csv parsing than just splitting on ",", but<br>having said that your code runs a lot quicker than I was expecting.
<br><br>I had tried <a href="http://www.neilvandyke.org/csv-scm/">http://www.neilvandyke.org/csv-scm/</a> but this was really slow<br>so turned my sights to wrapping a c library.<br><br>Thanks!<br><br>Phil<br>_______________________________________________
<br>Gambit-list mailing list<br><a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br><a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
</a><br></blockquote></div><br>