Tracking the contents of a single file in .NET

In C#/.NET, when you want to track a directory for changes you use FileSystemWatcher. Sometimes, you only need to track a particular file. I created a class FileWatcher for this reason. This class minimizes IO usage by reading lazily and memoizing the result, which means the read is performed only when you request the watcher.Content… Continue reading Tracking the contents of a single file in .NET