If you open a file in notepad++, then modify it in another application. The notepad++ would remind you the file is modified outside, and you can reload it.
How do I fulfill such feature?
The only way I can figure out is to set a timer to check the file's modification time (rather than to check the file's content due to the performance reason.)
Is there any better method?
PS: I'm working on C++.