Hi All,

I've spent some time trying to performance test various methods of loading / accessing a file, either into memory or through a memory mapped file, but I am having some trouble.

FILE * pFile;

std::ifstream ifs;


I'm have trouble because Windows appears to cache the file, so I am getting very mixed results. Sometimes a huge file (100's MB's) will load quickly, other times almost instantly.

Does anyone know how to stop Windows from doing whatever it's doing, so I can see the real time taken to load/access a file from disk?