#include
#include
#include
#include
#include
#include
int main(int argc, char * argv[])
{
if(argc != 3)
{
fprintf(stderr, "Usage: %s src dec \n", argv[0]);
return -1;
}
// MYFILE * fp
FILE * fpr = fopen(argv[1], "r");
FILE * fpw = fopen(argv[2], "w");
char buf[200] = {};
int ret;
while(!feof(fpr))
{
ret = fread(buf, 1, 200, fpr);
fwrite(buf, 1, ret, fpw);
}
fclose(fpr);
fclose(fpw);
}
阅读(969) | 评论(0) | 转发(0) |