From: Rob Biedenharn Date: 2013-02-15T03:27:33+09:00 Subject: Re: file size of each item in file list On Feb 14, 2013, at 12:32 PM, Joel Pearson wrote: > Robert Klemme wrote in post #1096937: >> Even worse: File.read will ignore the block. It's simply never >> executed. Otherwise one would see an error. > > I didn't notice this, it should have been > contentsArray = File.read('/tmp/lg_files').split $/ If you want the entire set of lines, just use contentsArray = File.readlines('/tmp/lg_files') http://apidock.com/ruby/v1_9_3_125/IO/readlines/class