Alex Gutteridge wrote:
> On 13 Nov 2007, at 14:59, Feng Tien wrote:
> 
>> I know the file.size works because I tried it with an static name and
>> ============
> Add 'bad/' to each filename. E.g:
> 
> Dir.foreach("bad") do |f|
>    puts "#{f}: #{File.size('bad/'+f)}"
> end
> 
> Alex Gutteridge
> 
> Bioinformatics Center
> Kyoto University

excellent, thanks it worked!

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