So, I want multiple readings on that file but the problem is that after the first reading, the "arx" reads below the point it stopped the first time.
How can I solve that?
I tried putting
1 2
arx.close();
arx.open("loginfile.txt");
between the two loops, thinking that it may "reset" the arx but it didn't work.
I also did it with two ifstreams, (ifstream.arx and ifstream.arx2) and it worked, but it doesn't seem to me that creating separate arx's everytime I want to read it is the right (the most practical) way of doing it.
Thank you in advance, and excuse me any mistakes in the way of expressing myself as I'm a noob in c++ and a non-native english speaker.