fgetc with while loop ... ptr=fopen("ha.dat","r"); char a; while((a=fgetc(ptr))!=EOF) { printf("%c\n",a); } fclose(ptr); return 0; }.
確定! 回上一頁