use the below code
FileSystemWatcher watcher = new FileSystemWatcher()
{
Path = FilePath,
Filter = "Refresh.txt"
};
watcher.EnableRaisingEvents = true;
watcher.Created += new FileSystemEventHandler(watcher_Created);
watcher.Changed += new FileSystemEventHandler(watcher_Changed);