in reply to Re: How to detect if file is in use?
in thread How to detect if file is in use?

But then you've transformed the problem into something completely different, but not necessarily more easily solved. The new question becomes how long must you wait to ENSURE that log file is not being appended to? One second may not be long enough, nor 10, 100, 1000 etc.

-Scott