you can use the System.IO.FileSystemWatcher class.
FileSystemWatcher watcher = = new FileSystemWatcher();
watcher.Filter = @"myFile.ini";
watcher.Changed += new FileSystemEventHandler(watcher_Changed);
and then you implement a delegate of type FileSystemEventHandler:
static void watcher_Changed(object sender, FileSystemArgs e)
{
Console.WriteLine("File {0} has changed.", e.FullPath );
}
every time the file you select in the filter changes, you get a warning (you can use the Debug or Trace class to display data). In addition, the FileSystemWatcher class has more events (renamed, deleted, created).