However, if the file has ben opened by one user for write purposes, then it is write-locked for other users. Thus, you'd write a WHILE loop to wait until the other user releases the file. One would also insert a timeout value, otherwise you might end up with a loop that never exits.
_________________________
There are two types of vessels, submarines and targets.