I declare that I want to write a small tool to read files using C # or java. Log files will be in .txt format. The application starts and writes logs, and I want my tool to open the log at the same time and automatically update when a new line is written to the log file.
My task: how to detect changes to the log file so that my tool can display in real time? This is a general question, but pseudo-codes will be very grateful!
source share