I have two binary files that are related one to another (meaning, when one file's records are updated, the other file's matching records should be updated as well). both files are binary files stored on disk.
The updation will look something like this:
UpdateFirstFile()
-- first file is updated.....
UpdateSecondFile()
-- second file is updated...
what methods should I use to make sure that either BOTH files are updated or NONE of the files is updated?
Both files are flat files (of size 20[MB] each). I know a database would have solved this problem, yet I am note using one due to overhead reasons (every table would require much more than 20[MB] to be stored, and I am short on space and have 1000s of such files...).
Any ideas?