Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私が遭遇し、ファイルが大きくなったことを示しているfeof()場合、 andを実行せずに追加されたデータを読み取る方法はありますか?statfclose()fopen()
feof()
stat
fclose()
fopen()
はい。ファイルを呼び出しclearerrたり、 などのシーク操作を実行したりできますfseek(f, 0, SEEK_CUR)。
clearerr
fseek(f, 0, SEEK_CUR)