修改一下程序,谢谢。
#include "stdio.h"main()
{
FILE *fp;
int ch;
int count=0;
if((fp=fopen("file1.text","w"))==NULL)
exit(0);
while((ch=fgetc(fp))!=EOF)
{
count+=ch;
}
fputs(count,fp);
fclose(fp);
}
2011-01-04 16:46
2011-01-04 17:21