I have files formatted as so:
2 3
9 7 11
12 5 6
3 4
they always start with 2 integers and end with 2 integers outside of that it may vary. I need to treat the final two ints differently then the integers before them. Roughly what I want to do is:
size_t c1;
myfile >> c1;
while (!myfile.eof()){
//do stuff to c1;
myfile >> c1;
myfile >> c2;
if (!myfile.eof()) // put c2 back <---- how do I do this?
}
myfile.close();