Hello, I'm hoping someone can help me finish this: Basically need to have autoIT remove the Last and the 4th last line off a log file as it contains personal info. I can get the last line removed, but can't figure out what I need to do for the 4th last: This works so far to remove the last line: #include <Constants.au3> #Include <File.au3> $sLogPath = 'Debug.txt' #include <Array.au3> #include <Word.au3> $iCount = _Fil