If you don't know any programming languages, then use Python and not C. Python's standard library has excellent support for reading CSV (comma-separated values) files.
BTW, you subject line should be about fetching data from a CSV file, not an Excel file. After reading just the subject, I was about to post about using Windows' "unmanaged", C++-based Component Object Model API to interoperate with Excel.
I'm assume a real-world application here, of course. Your "project" is trivial enough that it could easily be homework. With homework, the difference would be that you are stuck with C. In that case, you should look at how to handle text files and strings (how to tokenize strings, for example) in C.
Last edited by dugan; 01-31-2011 at 08:32 AM.
|