can anyone explain why this is happening?

Discussion in 'C' started by micsom, Oct 13, 2008.

  1. micsom

    micsom New Member

    Joined:
    Oct 13, 2008
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Developer
    Location:
    I*N*D*I*A*
    hi..

    i have made a simple C program to copy 1 file to another file...using fgetc and fputc...
    the code is working fine except 1 problem is that ÿ is appearing at the end of the destination file...can some1 please tell me why this is coming?..

    by the way i am using Turbo C

    thank you
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    Are you fputc'ing the EOF?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice