Maestro
March 11th, 2003, 07:24 AM
Hi!
A write out data to a binary file and later I want to read from it.
The problem is, when I use fread, it finds EOF somewhere in the middle of the file. I want to read int32 values when it occurs.
I think the hexa code of EOF is 04 and I had int32 i=4 data. Later I added 100 to every int at write and I subtracted 100, when I readed it, but the same thing happend.
How should I avoid that? Overstep it with fseek or what?
Thanx
A write out data to a binary file and later I want to read from it.
The problem is, when I use fread, it finds EOF somewhere in the middle of the file. I want to read int32 values when it occurs.
I think the hexa code of EOF is 04 and I had int32 i=4 data. Later I added 100 to every int at write and I subtracted 100, when I readed it, but the same thing happend.
How should I avoid that? Overstep it with fseek or what?
Thanx