I already have the line so I should need to use getline again.
You have the line, and you can get the first word delimited by a '~'. So you can use strcpy to compare the first word of the line with the word entered by the user and go to the next line if it doesnt match.
Reputation Points: 572
Solved Threads: 115
Mentally Challenged Mod.
Offline 1,559 posts
since Jun 2005