文件操作注意笔录

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

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

posted on 2012-07-11 11:52  w——杰  阅读(122)  评论(0编辑  收藏  举报

导航