cats #390(2007/07/09 11:41 GMT) [ C# ] Rating0/0=0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
using System; using System.IO; class Program { static void Main() { string filename = @"c:\test.txt"; FileSystemWatcher fsw = new FileSystemWatcher( Path.GetDirectoryName(filename), Path.GetFileName(filename)); fsw.Changed += delegate(object sender, FileSystemEventArgs e) { Console.WriteLine("modified!"); }; while (true) fsw.WaitForChanged(WatcherChangeTypes.All); } }
Rating0/0=0.00-0+
[ reply ]
cats #390() [ C# ] Rating0/0=0.00
Rating0/0=0.00-0+
[ reply ]