[ask]How to read a text file to c++

guys, I need some help,
I'm trying to make c++ progam to read text file.

here's the deal, I have text file,"list.txt", contain
"12,Ivan,45,Ryan,22,Rapael"

I want to make the otput of the program, look like this:
" age:12
name:Ivan
age:45
name:ryan
age:22
name:raphael"

I'm a beginner in this program so I really don't know what i should do..

Thanks man, that's really help.
Topic archived. No new replies allowed.