At 21:50 +0200 2002.07.29, Louis Pouzin wrote:
>Hi listers,
>
>What would be a smart way to test if a file is open ?
>
>I've used the following script, but it's clumsy.

Perhaps this would be what you want?  It depends on why you need to know;
if you are testing a file for reading, this would do it.  For writing,
probably not.

        eof FILEHANDLE

        Returns 1 if the next read on FILEHANDLE will return end of file, or
        if FILEHANDLE is not open.

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to