in reply to Re: Check whether a file is open
in thread Check whether a file is open

See thread of file locking. Mandatory locking exists (under some systems), but is not a solution.