Skip to content

How to copy contents in one file in to another file in c?

R@HUL

Asked Jun 9, 2015, 11:13 PM EDT1 answer
Share
LinkedInX
i want to copy contents in one file in to another file.

C#
fPout=fopen("parse.txt","r")
fPin=fopen("dpl.txt","w")

 do
 {
       a = fgetc(fPParse);
      fputc(a,fPOut);
 }
    while(a!=EOF);

i'm using this method but it shows error while compiling like multiple declaration,type mismatch etc. Also i've tried fread function but it doesn't work please help.....

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.