Home
Sign Up
Sign In
V2EX
›
C++
windows 下使用 fflush 刷新缓冲区后,资源管理器的文件大小没有变化
wildlynx
·
Nov 27, 2021
· 2259 views
This topic created in 1815 days ago, the information mentioned may be changed or developed.
fopen (*****)
while ( true ){
fwrite
fflush
if (***)
break
}
fclose
运行很久之后,文件大小很久没有变化,一直为 0. 这是 windows 的特性吗?
fflush
Windows
缓冲区
fclose
2 replies
•
2021-11-27 18:47:44 +08:00
ripperdev
Nov 27, 2021
1
这几个函数都是有返回值的,看看返回值的情况
ysc3839
Nov 27, 2021 via Android
2
msvc 的 fopen 默认是使用独占模式打开吧?此时别的程序是不能访问此文件的。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
2521 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms ·
UTC 11:00
·
PVG 19:00
·
LAX 03:00
·
JFK 06:00
♥ Do have faith in what you're doing.
❯