Question : Need C code to read Csv files

I have a CSV files with name  CTS_XXXXX_112.monday

file  contains values like

1282104000,1282104001,1800,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1282159800,1282159800,1799,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
..
..
etc

other csv files are named  like this
CTS_XYZ_112.monday
CTS_XYZ_112.tuesday
CTS_XYZ_112.wednesday
CTS_XYZ_112.thursday
CTS_XYZ_112.friday
CTS_XYZ_112.saturday
CTS_XYZ_112.sunday


it is always  CTS_somename_version.number.dayoftheweek.


I need a generic C code which can read the name of the csv files.

Answer : Need C code to read Csv files

>> the whole library

It's just one source file. Nothing big. And you can easily just take the source file and use it in your project.


>> I haven't programmed in C  in while though

That's probably a good reason to stick with existing code ... It'll save you some time, and you can be reasonably sure that the code is gonna be stable.
Random Solutions  
 
programming4us programming4us