From: Michael Gorsuch Date: 2008-07-04T08:58:36+09:00 Subject: Re: Running every file Try Dir.glob(pattern), as it returns an array with all of the files. files = Dir.glob("*report*") Hope that helps, Michael Gorsuch http://www.styledbits.com On Thu, Jul 3, 2008 at 7:41 PM, Justin To wrote: > **and I need to return the filename to a variable 'filename' > -- > Posted via http://www.ruby-forum.com/. >