How to read from an input file with various types

I have an input file that looks like this:

Last Name, First Name Number Number Number
and continues for 25 lines

I need to extract the Last name, first name and three numbers into different variables.

I have been banging my head all night and I cannot think of this.

Help please.
I would probably use getline() and then use the string functions to separate the data.
Topic archived. No new replies allowed.