This script provides a class which will read a text file in reverse… It basically reads a block of data from the end of the file as a list and keeps popping items off of thatsically reads a block of data from the end of the file as a list and keeps popping items off of that everytime the readline() method is called. When the block is exhausted, another block is read, and so forth… This takes care of corner cases where a line is longer than the buffer or the file is smaller than the buffer, etc.
Download from: Homepage
Author:
Time:
Saturday, May 31st, 2008 at 9:50 am
Category:
Comments:
You can leave a response, or trackback from your own site.
RSS:
You can follow any responses to this entry through the RSS 2.0 feed.
Navigation: