FILE * fp =fdopen(0,”w+”); fprintf(fp,”%s\n”,”hello!”); fclose(fp); }. 執行. hello! feof(檢查文件流是否讀到了文件尾). 相關函數. fopen,fgetc,fgets,fread.
確定! 回上一頁