share a file between two processes.
Posted on 2002-06-26
my application uses an input file. at the end of each run the application writes its results to the same file (the input file).
The application runs successively many times.
I want to run a few instances of the application simultaneously -> more then one process will try to read or write to the file, which is not good.
I want to lock the file in some way so as only one process will have read / write access to it.
I am writin in C++ , not MFC.