I have a csv file with the following information on each line:
John,Doe,17
The ifstream object name is inFile and I tried:
string firstName;
string lastName;
int age;
inFile >> firstName >> "," >> lastName >> "," >> age
However, clearly, i cannot do >> "," >>
How do I correctly get those values and use them?
Thank you.