From: "Peña, Botp" Date: 2007-11-22T13:26:32+09:00 Subject: Re: Read last line of a file From: James Edward Gray II [mailto:james@grayproductions.net] # require "elif" # last_line = Elif.open(path) { |f| f.gets } cool. wc reminds me, i'm looking for a gem that reverses the behaviour of string/collection/io/ traversals, like #file reverse require "in_reverse" last_line = File.open(path).in_reverse { |f| f.gets } #array reverse %w(this is a test).each.in_reverse {|x| p x} test a is this #string reverse "this is a test".each_char.in_reverse {|c| p c; break if c=="a"} t s e t a # kind regards -botp