include<head.h>
int main(int argc, const char *argv[])
{
if(argc!=3)
{
printf("error\n");
return -1;
}
FILE *fp=fopen("./1.txt","r");
if(fp==NULL)
{
printf("fopen");
return -1;
}
FILE *fp1=fopen("./2.txt","w");
if(fp1==NULL)
{
printf("fopen");
return -1;
}
char a[100];
int len=fread(a,1,sizeof(a),fp);
fwrite(a,1,len,fp1);
fclose(fp);
fclose(fp1);
return 0;
}