Csv reader

  1. 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?
     
  2. jcsd
  3. mgb_phys

    mgb_phys 8,952
    Science Advisor
    Homework Helper

    If you know the format of the CSV file the normal way is to just use fscanf() - or better getline() and sscanf().
     
Know someone interested in this topic? Share a link to this question via email, Google+, Twitter, or Facebook

Have something to add?