From: Ryan Davis Date: 2010-04-10T07:57:36+09:00 Subject: Re: read and write stock prices to file using arrays On Apr 9, 2010, at 15:25 , Peter Miller wrote: > next if line.chomp.empty? # skip empty lines you might want line.strip.empty? if you encounter errant whitespace in your data file.