From: Shuaib Zahda Date: 2007-11-22T11:12:23+09:00 Subject: Re: Read last line of a file James Gray wrote: > On Nov 21, 2007, at 2:21 AM, Shuaib Zahda wrote: > >> I was trying to figure out how to use this method but I failed. Can u >> please give me an example > > require "elif" > > last_line = Elif.open(path) { |f| f.gets } > > James Edward Gray II Thanks it works. But when i used require "elif". My ruby did not recognize its path. So i copied it into my local directory and ran it fine. Is there any path issue that i have to tackle when i download new package from gem. I am using ubuntu 7.10 Regards -- Posted via http://www.ruby-forum.com/.