Need HELP with: Formated Input form file
Hi everybody!
I'm have to read a file - which format is [u]known</u>!
My file looks like that:
User 1
Connections 10
User 2
Connections 14
max buffer size = 50
the number of "users" is unknowk, it means that I don't know how many pairs of:
"User X
Connections Y"
I need to get somehow the User's id and connection number from the file and store them in local dataMembers (int id & int conNum).
How to do this?
Thanks!
|