What I want to accomplish:
Reading from the end of a log file that constantly gets data appended. This log file is too big for the standard methods of just loading it in its entirety into memory, doing a line count and then using FileReadLine, etc. AutoIt constantly checks the file's size and should only read in new data when the file size increases (if it decreases, it simply sets its last known size to whatever the new smaller size is).
What I'm looking for help with:
Is there a way to shift AutoIt's file pointer for the currently opened file to a given offset (so it thinks the beginning of the file is actually X bytes in)? Even if it's a fairly dirty hack (modifying AutoIt's own memory after a FileOpen command to shift the file pointer), it would be acceptable.
Something I've tried that doesn't work:
FileReadLine($file_handle, -2)
Or -3, etc. Only -1 works and that most recent line is often not enough (sometimes multiple lines get appended at once).
Queue