fprintf in C\C++# Programming - 葵花宝典
i*d
1 楼
Hi, I have a question about the fprintf in C\C++. Usually we open a file
with fopen,
write data to that file with fprintf. Before we close the file, however, we
may see that the date file is essentially empty, meaning that the program
just wrote the data to some buffer, instead directly wrote them to the hard
driver. So my question is:
is there any function which would force fprintf write data to hard driver at
the real time or with the minimum delay?
Many thanks!
with fopen,
write data to that file with fprintf. Before we close the file, however, we
may see that the date file is essentially empty, meaning that the program
just wrote the data to some buffer, instead directly wrote them to the hard
driver. So my question is:
is there any function which would force fprintf write data to hard driver at
the real time or with the minimum delay?
Many thanks!