help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting if a file is open


From: gOS
Subject: Re: Detecting if a file is open
Date: Mon, 2 Jun 2008 08:57:41 -0700 (PDT)



John W. Eaton wrote:
> 
> But also note that if you want "Matlab compatibility" for cleanup
> functions, then you are restricting your Matlab users to the latest
> 2008a release of Matlab...
> 
> I think the cleanup function idea (or unwind protect) is the cleanest
> way to do what you want, but for the particular case of deciding
> whether a file is open, you might try using
> 
>   open_fds = fopen ('all');
> 
> jwe
> 

I'm not quite sure how I missed that option in the documentation, but that
should help. Thank you.

Also, 2008a isn't in use here at the moment so pretty all of that isn't
applicable for my case, for now. Thank you for the insight though.

-- 
View this message in context: 
http://www.nabble.com/Detecting-if-a-file-is-open-tp17566839p17604688.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]