I writing a code to scan updating log file, but cannot open it cause other program need to rename it. At first I open the original file directly and scan, found cannot renam