|
-
March 11th, 2003, 08:24 AM
#1
write and read from a binary file
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|