Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
A very strange problem reading a file....
Hi, I've currently a very strange problem trying to read data from a file. In this file there is a sequence of objects of this form:
-char //<--| Packed in a single integer by the compiler
The first char rapresents the day field of a date.
Ok. Most of times the program writes and reads its files without errors, but this time, when it tries to read it, it reads some objs and then, just before the first char, an End Of Files occours. The file seems to be correct. Then I opened it with an hex editor, then I changed this char (= 1A) with 1C. And then the program run! I just changed the day and the End of file didn'appear! What do you think about?
0 · ·