Hello all,
I have a file blah.txt like this:
3 1 4
1 2 3
and here is my code to read in that file:
For some reason, it just keeps readin in the values: 3 1 4Code:int x = 0, y = 0, z = 0; ifstream data("blah.txt"); while(x != 1) { data >> x >> y >> z; }
What am I doing incorrectly?
Thanks!!




Reply With Quote