read from file

I have a problem while reading from a .txt file, I have a class named student and it has variables like name, age etc.
and there are several lines in the text file, each reprsent the whole information of a student, now the question arises, how to read them into name and age and others respectively.
Because one's name may have 2, 3 or 4 words, I dont know where to stop, especially when class student has, for example , address which is also consisted with lots of words.
Can you post a line from the file?
Ok
Tracy McGrady Bartow,Florida
Artest Ron Queensbridge, New York
William (Bill) H. Gates Seattle
...
Not possible. Can you change the file format?
like this?
Tracy McGrady /Bartow,Florida
Artest Ron /Queensbridge, New York
William (Bill) H. Gates /Seattle
...

closed account (z05DSL3A)
http://en.wikipedia.org/wiki/Comma-separated_values
I got it! thank you , Grey Wolf and all.
Topic archived. No new replies allowed.