View Single Post
  #1 (permalink)  
Old December 20th, 2006, 08:53 PM
LoonyGenius LoonyGenius is offline
Registered User
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!
Reply With Quote