From: Ted Flethuseo Date: 2010-07-22T13:21:21+09:00 Subject: finding last line in a file Hi everyone, Is there a one line command to do this? I mean currently I use File.foreach(inFile) do |line| ... done I could do this with a counter, but that is SO UGLY, and I want to do an operation on that very last line. Regards, Ted. -- Posted via http://www.ruby-forum.com/.