Linux练习(函数调用复制文件)

原文链接: http://www.cnblogs.com/tiandsp/archive/2012/09/06/2673388.html
#include 
#include 
int main()
{
    int c;
    FILE *in,*out;
    in=fopen("file.in","r");
    out=fopen("file.out","w");

    while((c=fgetc(in))!=EOF)
            fputc(c,out);
    exit(0);

}

转载于:https://www.cnblogs.com/tiandsp/archive/2012/09/06/2673388.html

你可能感兴趣的:(Linux练习(函数调用复制文件))