I have a program that continuously writes its log to a text file. I don't have the source code of it, so I can not modify it in any way and it is also protected with Themida.
I need to read the log file and execute some scripts depending on the content of the file. I can not delete the file because the program that is continuously writing to it has locked the file. So what will be the better way to read the file and only read the new lines of the file? Saving the last line position? Or is there something that will be useful for solving it in C#?