I want to follow the update of the site, how can I do this? What would my launched program with a certain frequency go to the site and check if there is something new there.
Here is a sample code. But the program slows down.
while(true) { // Проверка существования файла. if (File.Exists("C:\\0.txt")) { var m = File.ReadAllLines("C:\\0.txt"); foreach (var st in m) { if (st.Contains("Day")) { Shutdown(); } } } Thread.Sleep(3000); }
How is this done more gracefully?