C++ file IO
If once the file pointer is proceded forward during reading successively,the characters can be read well but when it is taken back bu using seekg() with appropiate parameters the file characters cannot be read properly,giving garbage values.The problem is tried on Visual C++ 6.0 and Borland C++ 4.5.
If your code doesn't work properly, then there must be some bugs in your code.
Is this a question ?
Shure you can move backwards. But usually doing so on a file stream opened in text-mode gives you troubles ( especially on windows with its two char end of line markers ). Never had any problems with binary mode.