[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Loop through files in a directory

Ben Johnson

5/4/2007 8:40:00 PM

I know this is a nub question, but the documentation on ruby is
terrible.

How do I loop through all of the files in a directory?

Thanks for your help.

--
Posted via http://www.ruby-....

2 Answers

Jano Svitok

5/4/2007 8:48:00 PM

0

On 5/4/07, Ben Johnson <bjohnson@mediamanifest.com> wrote:
> I know this is a nub question, but the documentation on ruby is
> terrible.
>
> How do I loop through all of the files in a directory?
>
> Thanks for your help.
>
> --
> Posted via http://www.ruby-....

Have a look at Find.find and Dir.each.

Ara.T.Howard

5/4/2007 9:51:00 PM

0