working with .csv files?
-
hi everybody, i'm working on a project that reads in a .csv file(comma delimited).. i was wondering is there a premade library for reading .csv, ie parse everything nicely? i want to find out if there is one before i write one for myself.. btw, i'm running winxp pro, using vc++ and having ms office xp installed. thank you!
-
hi everybody, i'm working on a project that reads in a .csv file(comma delimited).. i was wondering is there a premade library for reading .csv, ie parse everything nicely? i want to find out if there is one before i write one for myself.. btw, i'm running winxp pro, using vc++ and having ms office xp installed. thank you!
If you took a lookie in the Files and Folders section, I'm sure you would have stumbled onto my article: http://www.codeproject.com/file/CDataFile.asp[^] :cool: I just submitted an update that implements write/create methoda as well as statistical analysis. If you are reading text only and not numerical data, you can just change the CNamedVariable member vData from std::vector<double> to std::vector<CString> if you'd like. Just remember to strip out the atof() call in the read method, and don't use any of the math calls in the new version. - Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb