I am wondering whether watching a file/directory for changes using the FileSystemWatcher class is extremely memory intensive. I am developing a desktop application in C# that will be running behind the scenes continuously on low-performance computers, and I need some way of checking to see if various files have changed. I can think of a few solutions:
- Watch the directories using FileSystemWatcher.
- Run a timed thread on an interval that goes through and manually checks this.
- Check manually every time the actionhandler thread runs (the program will occasionally do something, on an action).
Any suggestions?
Thanks!
badPanda