In C ++, I want to create a loop that constantly checks the file size and do something if the size changes

I am trying to create a program that will constantly check the file size, and if the file size changes, do the program something. The file is an html file, so another method may be to constantly monitor its source, and if the number of characters changes, do something.

I think I could do this without any problems, but I had a problem with constantly checking the file. Is there a function that can do this? I would like him to check every 10 seconds.

edit: Operating System - 64-bit version of Windows 7

+3
source share
2 answers

Windows API , , , . , .

. - , 100% - , , , 5 .; >

+5

Source: https://habr.com/ru/post/1796430/


All Articles