Program To Copy Contents of One File To Another
Program To Copy Contents of One File To Another
com
Page No. 1
/***
***/
#include <stdio.h> main() { FILE *fp1, *fp2; char ch; fp1 = fopen("abc.txt", "r"); fp2 = fopen("xyz.txt", "w"); while((ch = getc(fp1)) != EOF) putc(ch, fp2); fclose(fp1); fclose(fp2); getch(); }