i know how to use rewind in C but now i'm using fstream and need to rewind my file, i guess i could just close it and re open it but thats uglier than what i'm already attempting..
how would one rewind a file called 'in' in c++? ??
gracias
i know how to use rewind in C but now i'm using fstream and need to rewind my file, i guess i could just close it and re open it but thats uglier than what i'm already attempting..
how would one rewind a file called 'in' in c++? ??
gracias
SS3X
If you want to go back to the begining of a file, just do:
InFile.seekg(ios::beg);
I think that's what you want.
i think he wants it to refreash
+++
++
+ Sekti
++
+++