#include <stdio.h>
#include <stdlib.h>
void main()
{ FILE *fp1, *fp2;
int a[100]={0}, i, j;
char c;
if ((fp2=fopen("c:\\lhh\\f2.txt", "r"))==NULL)
{ printf("Can not open file!\n"); exit(0);}
if ((fp1=fopen("c:\\lhh\\f1.txt", "w"))==NULL)
{ printf("Can not open file!\n"); exit(0);}
while (!feof(fp2))
{
c=fgetc(fp2);
fputc(c,fp1);
}
fclose(fp1);
fclose(fp2);
}