根据文件句柄清空一个文件

SetFilePointer(hFile, 0, NULL, FILE_BEGIN); 

SetEndOfFile(hFile);

FlushFileBuffers(hFile); //先把写文件缓冲区的数据强制写入磁盘。

posted @ 2014-11-20 16:28  vcerror  阅读(378)  评论(0编辑  收藏  举报