i have a comma delimited file, an example entry below:
"AACC","Dec 9",21.60,"+0.60","+2.86%",9.77,N/A
and i want to only take the third element and feed it to a function in my c++ program. right now i can read in a line (like the line above) into my program but i just need to know how to step thru the line and only take the third element. i was trying to do this by trying to find the second comma and then taking everything after it until the third comma. i couldn't get it to work. any help and code would be great. thanks.
Phil
"AACC","Dec 9",21.60,"+0.60","+2.86%",9.77,N/A
and i want to only take the third element and feed it to a function in my c++ program. right now i can read in a line (like the line above) into my program but i just need to know how to step thru the line and only take the third element. i was trying to do this by trying to find the second comma and then taking everything after it until the third comma. i couldn't get it to work. any help and code would be great. thanks.
Phil