if size(file) > lastKnownSizeOfFile:
    amountToRead = size(file) - lastKnownSizeOfFile
file.seek(lastKnownSizeOfFile)
newData = file.read(amountToRead)
exceptionArchive.write(newData)
emailMe(newData)
lastKnownSizeOfFile += amountToRead
How Can I Detect Changes To A Text File During The Execution Of A Python Script?