I have a downloaded C++ utility program that dies due to an error while reading an input file. Unfortunately all that it outputs is that “error at offset: 69570744324 in file”; by looking at it’s source code, I found that it was actually printing out the .tellg() output there.
I don’t quite understand how one can use this offset information constructively to understand the error in the input file. I would greatly appreciate any help.
If you are dealing with a text file you can output its content starting from some offset using this simple command:
where offset starts from 1. Looking at the content of the file around given offset may help you to understand the problem. That said the offset looks suspiciously large to me, so it may not be reported correctly.