I have developed a windows service which monitors the text file. Windows service checks the file 2 times in a second depending on the frequency it is set.
I want to know how to detect whether a new line is added or multiple lines has been added. If added then I want to read those lines.
My windows service has a timer that triggers every 2 times in a second.
any code will be highly appriciated.