回复 2楼 Erlosshex
多谢哥们儿!,那这一个怎么改呢???
YPP求帮忙。帮我改一个程序。谢谢!
//C语言文件操作
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *in,*out;
if((in=fopen("C:\\Users\\YPP\\Desktop\\input.txt","r"))==NULL)
//读
{
printf("Cannot open the input.txt !\n");
exit(0);
}
if((out=fopen("C:\\Users\\YPP\\Desktop\\output.txt",‘w’))==NULL)
//写
{
printf("Cannot open the output.txt !\n");
exit(0);
}
while(!feof(in))
putc(getc(in),out);
putchar(10);
fclose(in);
fclose(out);
return 0;
}