From: Dave Bass Date: 2008-08-26T01:14:07+09:00 Subject: Re: Open file, get first line, delete first line close file Erik Hollensbe wrote: > Dave Bass wrote: >> And... it's a lot easier to delete the *last* line of a file than the >> first. > > I don't think this is actually true, can you explain further? My Ruby isn't up to coding it, but in principle I'd seek to the end of the file, then backtrack until I found the appropriate newline. Then I'd truncate the file. -- Posted via http://www.ruby-forum.com/.