From: James Gray Date: 2008-12-22T22:35:02+09:00 Subject: Re: get first and last line from txt file - how? On Dec 22, 2008, at 4:11 AM, Marc Heiler wrote: >> Why re-invent the wheel? > > Because your wheel will not work on i.e. Windows without the "tail" > binary, but the ruby wheel will work wherever ruby works. Definitely have a look at Elif then. It's a tail like algorithm in pure Ruby. James Edward Gray II