thanks for the reply, I have used another method to solve my problem. ie 1) get the total count of the first file 2) write this total count to basecnt eg basecnt 3) get another file, get the total count of this file. eg filecnt 4) if filecnt > basecnt, read in the values from file[basecnt:filecnt] 5) if filecnt < basecnt, overwrite original basecnt and start over again.
basically, the problem domain is i want to get the most current records from a log file to review after every 3 hours. so this log file will increase or accumulate. -- http://mail.python.org/mailman/listinfo/python-list