ファイルを読み込んで別ファイルに書き出す
#include<stdio.h>

int main(int argc , char *argv[])
{
FILE *in,*out;
int c;

if( argc < 2 ){
printf("ファイルを指定してください\n");
return 0;
}

if((in = fopen( argv[1], "r")) == NULL){
printf("ファイルをオープンできません");
return 1;
}
if((out = fopen( argv[2],"w")) == NULL){
printf("ファイルをオープンできません");
return 1;
}
while((c = fgetc(in)) != EOF){
fputc(c,out);
}
fclose(in);
fclose(out);

return 0;
}