[Dev-C++] Problem writing and reading some bytes to and from a file
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <rog...@em...> - 2003-09-24 12:48:56
|
Dear friends, I wrote the program bellow. It opens a file, records 1 to 5 some times into a file and close it. Then it opens the same file again, reads its contents and close it. First, I defined count from 1 to 5 (hex) getting correct results. (See attached file: GeraOk.cpp) Then, I defined count from 9 to d (hex) getting wrong results. (See attached file: GeraOk.cpp) I do not understand the reason. Could someone explain it and give a solution. Also, I could not get rid of the warning message. Which is the include file that should be used in order to do not use a deprecated header? Thanks for your help Roger |