If I encounter feof()
and then stat
shows that the file has grown, is there a way to read the added data without doing a fclose()
and fopen()
?
Yes. You can call clearerr
on the file, or perform any seek opereration such as fseek(f, 0, SEEK_CUR)
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With