R@HUL

R@HUL

  • NA
  • 8
  • 4.6k

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

Jun 10 2015 3:13 AM
i want to copy contents in one file in to another file.

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.....

Answers (1)