I was stupid, actually!
I had opened a binary file with "r" instead of "rb".
Anyway, having found out what my error was does make me feel better.
Marilia
User Profile
Collapse
-
fread problem; unexpected - unaccounted for EOF
Good evening,
(I am having a problem that is making me feel stupid. As in, I was expecting some problems (as always), but later on!)
I have a binary file which needs to be copied and processed. The binary file contains the data log from a PLC.
My simple approach was to use fread. But...
This is a fragment of the code:
...Code:FILE *ifp; ifp = fopen("in.iom", "r"); int
No activity results to display
Show More
Leave a comment: