From: Feng Tien Date: 2007-11-13T15:41:06+09:00 Subject: Re: Outputting file sizes of each item in a directory (error 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/.