文件操作问题,不知道错在哪里?
/* Note:Your choice is C IDE */#include "stdio.h"
#include "stdlib.h"
main()
{
FILE *fp;
char ch;
if(fp=fopen("E:\\data0.txt","rt")==NULL)
{
printf("open E:\\data0.txt failure!");
getch();
exit(1);
}
ch=fgetc(fp);
printf("%d",ch);
fclose(fp);
}
[ 本帖最后由 hwf214685147 于 2011-9-27 21:11 编辑 ]