Re: How to best parse a CSV data file and do a lookup in C?
From: Johnny Google (john_pataki_at_yahoo.com)
Date: 11/19/04
- Next message: Chris Barts: "Re: getc and ungetc"
- Previous message: ranjeet: "Re: How to read data ?"
- In reply to: Johnny Google: "Re: How to best parse a CSV data file and do a lookup in C?"
- Next in thread: Robert Gamble: "Re: How to best parse a CSV data file and do a lookup in C?"
- Reply: Robert Gamble: "Re: How to best parse a CSV data file and do a lookup in C?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Nov 2004 20:23:24 -0800
The main point here is I need help with either an already created
library which handles data files like this - or some C equivalent to
@data = split /,/, $line;
Since I think I know how to read the contents, and loop through the
array in C - and do the strcmp to test if it matches - I just don't
know how to simply put break the line into an array by telling it what
the delimiter is (as in the above split example).
Thanks,
John
- Next message: Chris Barts: "Re: getc and ungetc"
- Previous message: ranjeet: "Re: How to read data ?"
- In reply to: Johnny Google: "Re: How to best parse a CSV data file and do a lookup in C?"
- Next in thread: Robert Gamble: "Re: How to best parse a CSV data file and do a lookup in C?"
- Reply: Robert Gamble: "Re: How to best parse a CSV data file and do a lookup in C?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|