每次讀取一個位元組,直到讀取完畢. while( (ch=fgetc(fp)) != EOF ){. putchar(ch);. } putchar('\n'); //輸出換行符. fclose(fp);. return 0;. }.
確定! 回上一頁