|
Hello codersguru & firedave,
I'm working on a program that writes a .csv file that has 1 to multiple records which can be executed with a script or expert. To make this work, I have to read each field of each record into an array like:
ordersArray[record][field];
I think it would be very cool to have a function in the .csv reader to read a .csv file into an array. Something like:
int gGetRecordsArray(string file_path,int delimiter)
Example:
int ordersArray[][] = gGetRecordsArray("C:\\demo.CSV",','));
This would end up as ordersArray[record][field].
Is this possible codersguru? In any case, I'll post the final code here for firedave.
Thank you,
Greg
|