From: Daniel Seuthe Date: 2006-04-02T07:13:44+09:00 Subject: Re: Examine Folder Contents? Joshua Muheim schrieb: > I'd like Ruby to open a folder, search it for files and then store all > files names of .png files in an array and close the folder. So after > this I can do anything I like with the png files in the array... This is part of a RHTML file for showing all JPEG files as a list: <% bilder = Dir["*.jpeg"] %> This is part of a RHTML file for randomly show a picture from a picture list like above: <% bilder = Dir["../*.jpeg"] %> Daniel