Quote:
FileStream.Lock?
That would clearly handle the lock, but what about the waiting until it is unlocked part?
With the Mutex I get to call WaitOne() to wait for the Mutex to clear. Using FileStream.Lock I presumably have to then handle the waiting myself?
Do I just try to lock the file, if it fails sleep for a while and then try again (and presumably try this lock, sleep, lock operation a few times)?
_________________________
Remind me to change my signature to something more interesting someday