Reputation: 51255
How do I flush (empty) the windows file read cache using C++ win32api?
Upvotes: 1
Views: 1184
Reputation: 4368
I don't think you can (you could flush write cache), but you could always open your file via CreateFile with FILE_FLAG_NO_BUFFERING. This way, your reads would not be from the system cache, but straight from your device (which may cache data).
Upvotes: 2