[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: Roger C. <rc...@ic...> - 2003-09-25 10:30:11
|
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 --- Some files have not been scanned Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.505 / Virus Database: 302 - Release Date: 30/7/2003 |