in reply to Re: die command while other files are opened
in thread die command while other files are opened

Thank you for your answer.

I am going to use this END function.

END { close(LOG) if (tell(LOG) != -1);} This looks perfect!