Why not store the filesize instead of the line count? Then your 5 steps become
In reply to Re: Extract new lines from log file by BrowserUk in thread Extract new lines from log file by smithers