Hi,

>> 2) search backward for the string "%%EOF" within the last 1024 bytes
>> 3) search backward for "startxref"

Carlos <angus / quovadis.com.ar> 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