End of file question...PLZ HELP
Posted on 2003-02-20
I am writting a program to open a file with a specific header and behave accordingly, based off of the header. What I am running into is a problem once I reach the files end of file. This seems to cause my program to act like it has forgotten about the file. I have tried to use .seekg(0) to get it to go back to the beginning of the file and that has no effect. I have tried to close the file and reopen it within my program, again has no effect. The only way I could get the program to continue is if I make a copy of the origional file and once I have run my check against the origional file, which check various components of the file till it reaches the end of the file. After I have reached the origional files end of file, I have to do a .open on the copy of the origional to get my program to continue. Anyone know of what may be causing this?
Thanks in advance.