C代碼
#include<stdio.h>
int main()
{
FILE *dest_p,*source_p;
int ch;
source_p=fopen("1.tar.gz","rb");
dest_p=fopen("2.tar.gz","wb");
while((ch=getc(source_p))!=EOF)
{
putc(ch,dest_p);
}
fclose(dest_p);
fclose(source_p);
return 0;
}
作者“helinhang”