读程序,写出该程序的功能。
#include
main()
{FILE*fl,*f2;
int k;
if(((fl=fopen("C:\tc\p1.Crl,"r"))==NULL)
{printf("Cannotopenfile!\n");
exit(0);
}
if((t2=fopen("A:\p1.c","w"))==NULL))
{prinff("cannotopenfile!\n");
exit(0);
}
for(k=1;k<=1000;k++)
{if(feof(f1))break;
fputc(fgetc(f1),t2);
}
fclose(f1);
fclose(f2);
}