I used the tutorial to get the read file working, however, I can not fahtom how to avoid reading all lines.
Basically what I want to do is to have a couple of the lines together. For instance:
Line 1 = Think of a number between
Line 2 = and
Line 3 = Press ENTER when you're done.
I want these 3 lines to be printed on one line, WITH some of my INT variables.
For example: cout << Line 1 << lowest << Line 2 << highest << "." << Line 3 << endl;
I can not fahtom how to avoid reading all lines. I can't fathom what exactly your question is either? Are you asking how to read in from a file or are you asking how to get specific lines from a file? Or are you saying that you successfully read through your desired file and got all of the file but only want specific parts of the file?