getline() and Delimiter problem

OK. so im trying to read in from a file that contains names(6) each seperated by a comma.

e.x. John Doe, Jane Doe, etc...

I know using getline( in_stream, candidateNames[0][5], ','); would read the line up until the first column. I know i need a loop to cycle thru the array to put the strings in their appropriate locations.

The problem is I am having a hard time trying to find a way to read until the end of the line so that it does not stop at the first instance of the delimiter, that it will read each name until end of the line. any sugestions??
[590 byte] By [clcaruthers] at [2007-11-20 11:57:40]
# 1 Re: getline() and Delimiter problem
Why not just user getline to read the entire line and then use a tokenizer to split the line on the delimiters?
Marc G at 2007-11-11 4:02:00 >