[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Checking to see if a file is open (newbie)?

Thomas Luedeke

7/30/2008 10:21:00 PM

I'm almost embarassed to ask this, but does Ruby have any method (e.g.
File.open?) to check to see if a file is open? I see many methods in
File class, but nothing that addresses this directly. I googled it a
number of times and could not find a answer to this (dumb) question.....
--
Posted via http://www.ruby-....

1 Answer

Gregory Brown

7/30/2008 10:25:00 PM

0

On Wed, Jul 30, 2008 at 6:21 PM, Thomas Luedeke
<thomas.luedeke@areva.com> wrote:
> I'm almost embarassed to ask this, but does Ruby have any method (e.g.
> File.open?) to check to see if a file is open? I see many methods in
> File class, but nothing that addresses this directly. I googled it a
> number of times and could not find a answer to this (dumb) question.....

File#closed?