The purpose is to watch a log.txt file currently being written by another program. The program adds a specific log at the end of every iteration (for eg. SUCCESS).
When I am trying to read the file I am getting an error message that file is currently in use by another program.
What should I need to do so that I can read the file same time it’s being written.