我正在使用打开/读取功能,fopen/fread 有 feof 来检测文件结束,打开/读取的等效方法是什么?
最佳答案
来自 man read :
On success, the number of bytes read is returned (zero indicates end of file), ...
关于c - 使用打开/读取时如何检测文件结尾?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9806786/