From: Reid Thompson Date: 2012-01-21T05:00:41+09:00 Subject: Re: Parsing log with date time entry On Sat, 2012-01-21 at 04:21 +0900, Christopher Graves wrote: > The Rio way looks interesting but even after installing the gem it is > not working right on my test log. > you can ignore rio -- use any file io that will read and pass |line| to the block i.e. File.open('haggis.txt').each_line{ |s| puts s } File.foreach('haggis.txt') { |s| puts s } IO.foreach("testfile") {|x| print "GOT ", x }