Today I will talk about the " System.IO.FileSystemWatcher". It allows you to be notified when a file or directory (folder) has been created, renamed, changed or deleted. You can even sit and wait for such an activity to take place. Ok, Let me show you how to use this class. 1. Create a new object of FileSystemWatcher. System.IO.FileSystemWatcher fswXmlFileWatcher = new System.IO.FileSystemWatcher(); this.fswXmlFileWatcher.EnableRaisingEvents...
Read more...