你是说要刷新文件缓冲区!
不同的文件类型有不同的方法:#include <stdio.h>
int fflush(FILE *f);
这是标准C的文件刷新方法;
不同的文件类型有不同的方法:#include <stdio.h>
int fflush(FILE *f);
这是标准C的文件刷新方法;
解决方案 »
- TWICImage中的LoadFromStream重写,主要是要释放LStream := TStreamAdapter.Create(FData);这句话
- 怎么把图片保存到数据表中?
- ListView的详细用法?
- 为什么用TDataBase建交临时SQL连接,连接成功后,使用TStoredProcr控件执行存储过程要报General SQL error.错误喃
- 在线等待,如何处理JPG,BMP图片(转换为0,1的2进制文件),在此谢谢了!
- 如何释放一个类中的另一个动态类数组呢,谢谢,送100分
- 哪里有最新版的美萍网管大师注册机下载啊!急
- 提个问题:SQL里有没有像ACCESS里那样 如果数据删除多了,数据库会非常大的情况??
- 两个相同的数值类型怎么复制!
- dcc32如何使用?
- delphi5 与 oracle8 的连接
- 问问问:如何用Twebbrowser控件将打开的页面保存为mht格式?
The Flush functionThe Flush function is called at the end of each Read, Readln, Write, and Writeln. It can optionally flush the text-file buffer.
If Mode is fmInput, the Flush function can store zero in BufPos and BufEnd to flush the remaining (unread) characters in the buffer. This feature is seldom used.
If Mode is fmOutput, the Flush function can write the contents of the buffer exactly like the InOut function, which ensures that text written to the device appears on the device immediately. If Flush does nothing, the text doesn抰 appear on the device until the buffer becomes full or the file is closed.
HANDLE hFile // open handle to file whose buffers are to be flushed
);
这是API刷新文件缓冲区的方法,能通用;