文件操作注意笔录

fprintf fputc 等有一个缓冲区,当需要写入时需要加 fflush(fd)。

当fopen可以实现时,尽量使用fopen,不用open。

原文地址:https://www.cnblogs.com/wenjie2008888/p/2586015.html