From: Jonathan Brannan Date: 2001-08-18T05:18:20+09:00 Subject: [ruby-talk:19957] reading file line by line Im reading in a file through a block then a file.each_line {|line| Then i need to make sure that the \n\r's are striped. At the moment im doing line = line.gsub(/[\n\r]/, ""). Was wondering if there was a better way to do it.