My MFC based application would write multiple files of different types on a disk. I have to pre-allocate fixed disk space for the entire application so that other applications do not eat up my disk resources. Through google, I figured out how to pre-allocate disk space for a single file but not for multiple files.
Asked
Active
Viewed 1,259 times
2 Answers
1
See this answer Reserve disk space before writing a file for efficiency

Community
- 1
- 1

Martin Beckett
- 94,801
- 28
- 188
- 263
0
I don't think it is possible to pre-allocate disk space at application level (i.e. pre-allocate a chunk of space for multiple files). You have to allocate space for each file separately using CFile::Seek
or SetFilePointer
.

swatkat
- 4,785
- 1
- 23
- 17