不去调用fclose(),如何保存文件数据?

不去调用fclose(),怎么保存文件数据??
如题。。。

------解决方案--------------------
刷新缓冲区啊! int fflush(FILE* stream); 这样数据就会刷新到文件中去了