while (fscanf(infp, “%c”, &ch) != EOF) /* 輸入字元 */. fprintf(outfp, “%c”, ch); /* 輸出字元 */. fclose(infp); fclose(outfp); /* 關閉檔案 */. } An Example.
確定! 回上一頁