From: Jeff Miller Date: 2008-02-28T07:03:50+09:00 Subject: Re: checking for blank line Thanks for the reply! That does make sense! However, I still can't get this to work properly. I tried to use strip and chomp, but both of them kicked me errors "undefined method 'chomp' called for nil:NilClass (NoMethodError)". I figure this is kind of odd, since I've used both of these in RoR before. FYI, the code I posted is the entire script... perhaps I'm missing some sort of 'require' statement or something? Anyhow, I tried to use the \n, but I can't get to work either... I also tried @array[0] == '\n' and a bunch of other little changes. How may I construct an IF statement with this? Thanks again, - Jeff -- Posted via http://www.ruby-forum.com/.