How read/write them into arrays
Hello, all: The following is a part of an initial market data:
20090319,A,14.6,14.93,14.45,14.74,27928
20090320,A,14.75,14.95,14.29,14.43,42467
20090323,A,15,15.89,15,15.89,46303
20090324,A,15.66,16.055,15.63,15.79,27188
20090325,A,16.02,16.43,15.5401,15.96,29293
20090326,A,16.05,17.18,15.81,17.14,59793
20090327,A,16.79,16.96,16.21,16.21,32163
20090330,A,15.82,15.86,15.14,15.39,39704
20090331,A,15.52,15.7,15.27,15.37,47358
20090401,A,15.12,16.13,15.02,16,39561
20090402,A,16.39,16.77,16.18,16.32,42830
20090403,A,15.7,16.6,15.7,16.46,28789
20090406,A,16.31,16.32,15.74,15.98,33559
20090407,A,15.67,15.74,15.39,15.6,35614
It consists of 7-column, the columns are separated by comma ','.
Now I want to read/write the 1st, 2nd and 6th columns into different arrays
data[], Name[] and close[], which C++ language sentence can do this job.