Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   can anyone explain why this is happening? (http://www.go4expert.com/forums/explain-happening-t14517/)

micsom 13Oct2008 08:31

can anyone explain why this is happening?
 
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

xpi0t0s 13Oct2008 13:53

Re: can anyone explain why this is happening?
 
Are you fputc'ing the EOF?


All times are GMT +5.5. The time now is 18:01.