程式在寫時, 何時要用fgets? 何時要用fread? 主要的差異在哪邊? 以下就用簡單的範例來說明~ 先建立一個檔案: /tmp/readfile.txt, 內容如下: abcdefg ...
確定! 回上一頁