Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Csv reader

  1. Feb 9, 2009 #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. Feb 9, 2009 #2

    mgb_phys

    User Avatar
    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 this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Similar Discussions: Csv reader
  1. Textread of csv-file (Replies: 9)

  2. Java keybord reader (Replies: 7)

  3. C++ csv file reading (Replies: 2)

Loading...