Physics Forums

Physics Forums (http://www.physicsforums.com/index.php)
-   Programming & Computer Science (http://www.physicsforums.com/forumdisplay.php?f=165)
-   -   Csv reader (http://www.physicsforums.com/showthread.php?t=291060)

db1uover Feb9-09 12:17 PM

csv reader
 
I have to write a routine that reads in csv data and appends it in an xml template and saves it. I am not allowed to use C# or C++. It must be in C. I am running it on a Sun machine. Our team has come up with the reader for the nodes of the xml. I've checked several websites looking for example code, but everything is in C# or Java. I realize those are more helpful when working with PHP, etc. Is there somewhere I can find a reader for C?

mgb_phys Feb9-09 12:21 PM

Re: csv reader
 
If you know the format of the CSV file the normal way is to just use fscanf() - or better getline() and sscanf().


All times are GMT -5. The time now is 03:54 AM.

Powered by vBulletin Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2014 Physics Forums