From: Urabe Shyouhei Date: 2010-07-22T14:08:22+09:00 Subject: Re: finding last line in a file Take a look at the doc for File.readline.