how to know if file is still open for writing
<p><br>
i have a function that writes to a file , how can i using another script check if the file is being used for writing or it is closed ?</p>

<p><strong>Edit :</strong> this file might be opened for writing by other script/application/system ... </p>

<p>thank you .</p>
