From: Stefano Crocco Date: 2007-08-03T15:49:03+09:00 Subject: Re: pushing Find.find output into an array Alle venerd狸 3 agosto 2007, Jon Hawkins ha scritto: > Im basically wanted to throw the output from a find into an array > > require 'find' > Dir.chdir('/') > Find.find("/", "./") {|x| puts x} ---> need to push the results into > an array with each item being a different element. > Any ideas? > > Thanks a ton > -Jon Is this what you need? res = [] Find.find('/', './'){|f| res << f} Stefano