User Profile

Collapse

Profile Sidebar

Collapse
Marilia
Marilia
Last Activity: Apr 4 '07, 04:13 PM
Joined: Mar 31 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Marilia
    replied to fread problem; unexpected - unaccounted for EOF
    in C
    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
    See more | Go to post

    Leave a comment:


  • Marilia
    started a topic fread problem; unexpected - unaccounted for EOF
    in C

    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
    ...
    See more | Go to post
No activity results to display
Show More
Working...