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

T

Thomas Luedeke

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.....
 
G

Gregory Brown

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,816
Latest member
nipsseyhussle

Latest Threads

Top