I am developing an application similar to a database with its own system for managing memory and that persists data by writing it into a file on disk.
In order to read/write from this file I am using a std::fstream. However, due to testing purposes, I would like to force it to read/write directly from disk instead of the disk cache. Is there an easy way to do it?
Thanks.