reading csv files to a 2D string array in C++
Hey all,
I'm working on a data concistency checking program,
Now all that stuff is done in VBA(script) in Excel, and I'm trying to write a good C++ app to replace that.
I'm trying to write a good (safe) function to read a CSV (comma seperated values) file into a 2D array (suggestions on doing something totaly different like linked lists are welcome too)
I already wrote a quick and dirty readout sceme, that does it's work but can cause strange mallfunctions.
the CSV files are rather simple..
"string","string","string","string",
"string","string","string","string","string",
"string","string","string",
etc..
but also
"string","string","string",float,
"string",int,int,"string",float,
is possible..
so array's are not realy the option of choice..
the biggest problem is that there are no ( google / ao-search / developer.com etc.. ) good cut-n-paste pieces of code out there..
if anyone has any idea's, please post them, they could only be helpfull ;)
thanks in advance,
the_JinX