1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    Are you fputc'ing the EOF?
     

Share This Page