From: Patrick Gundlach Date: 2004-05-20T22:03:48+09:00 Subject: Re: seraching backward in files Hi, >> 2) search backward for the string "%%EOF" within the last 1024 bytes >> 3) search backward for "startxref" Carlos writes: > You can load the last 1024 characters in a string and use String#rindex for > (2). Then, use String#rindex again to find (3). If you don't find, load the > second-to-last 1024 characters, use String#rindex again, etc... Yes, this is cool. It works like charm. Thanks for pointing this out. Patrick