Running every file

Hi,

I need to open every file in the folder matching the same pattern…

basically,

open every file matching “report” in folder

Thanks!

**and I need to return the filename to a variable ‘filename’

Try Dir.glob(pattern), as it returns an array with all of the files.

files = Dir.glob(“report”)

Hope that helps,

Michael G.
http://www.styledbits.com