I'm trying to make sure that data I read from a CD is correct. The idea is reading 2 times, hashing the read data and comparing the hashes. The problem is that I'm working on potentially very small files, so two subsequent reads may cause the CD to be physically read only 1 time, with the data that I get when reading the file the 2nd time coming from the cache.
So, I need to clear the CD cache between the two reads. I'd love to be able to do that in C++, but basically everything would be helpful (command-line tool, assembler... hell, gimme even a lisp script
Thanks a lot in advance,