Perhaps read the input file a line at a time using a string and getline. Then parse the line of text: you could use stringstreams, but I might go with sscanf.
Reputation Points: 2780
Solved Threads: 312
long time no c
Offline 4,790 posts
since Apr 2004