Re: How to best parse a CSV data file and do a lookup in C?
From: Randy Howard (randyhoward_at_FOOverizonBAR.net)
Date: 11/23/04
- Next message: Ben Pfaff: "Re: C parser for reading C source files?"
- Previous message: Jack Klein: "Re: The one problem that I have with C..."
- In reply to: Paul Hsieh: "Re: How to best parse a CSV data file and do a lookup in C?"
- Next in thread: Jens.Toerring_at_physik.fu-berlin.de: "Re: How to best parse a CSV data file and do a lookup in C?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 23 Nov 2004 18:04:28 GMT
In article <d0a001b7.0411191558.5685bff5@posting.google.com>,
websnarf@gmail.com says...
> Ok, Johnny Google. I've written a usable CSV parser here:
>
> http://www.pobox.com/~qed/bcsv.zip
>
> It, in fact, can parse out the complete CSV standard (which includes
> quoting so you can put a commas, lead/trailing spaces and in fact
> quotes themselves in any given field) and thus should easily be able
> to handle that case you are concerned with.
Is there actually a "standard" for CSV? I was under the impression that
there was a wide variety of "similar" implementations by various vendors
that had subtle differences and formatting which made it difficult to have
a one size fits all CSV implementation.
http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm
Not trying to argue, just curious how your implementation attempts to
deal with variations in CSV usage.
-- Randy Howard (2reply remove FOOBAR) "For some reason most people seem to be born without the part of the brain that understands pointers." -- Joel Spolsky
- Next message: Ben Pfaff: "Re: C parser for reading C source files?"
- Previous message: Jack Klein: "Re: The one problem that I have with C..."
- In reply to: Paul Hsieh: "Re: How to best parse a CSV data file and do a lookup in C?"
- Next in thread: Jens.Toerring_at_physik.fu-berlin.de: "Re: How to best parse a CSV data file and do a lookup in C?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|