.NET FramworkのFileSystemWatcherクラスを調べていてわかったのですが、メモ帳などのエディタって、保存すると、2回ファイルの更新がおこなわれるんですね。 C#で、 FileSystemWatcher fsw = new FileSystemWatcher(dir); fsw.Filter = "*.txt"; fsw.NotifyFilter = NotifyFilters.LastWrite; fsw.IncludeSubdirectories = false; fsw.Changed += new FileSystemEventHandler(fsw_Changed); fsw.EnableRaisingEvents = true; のようなコードを書いて動かしてみたら、なぜか、fsw_Changedが2回走るんです。 プログラムで作成したコードも、2回走りま