Watching a file

  • Thread starter Thread starter John Dann
  • Start date Start date
J

John Dann

I need to watch a specific file that updates at irregular intervals
and raise an event when an update happens (ie file date/time stamp
changes). I had heard that there is a native method in .Net for doing
just this but can't see it. Anyone able to help please?

JGD
 
John said:
I need to watch a specific file that updates at irregular intervals
and raise an event when an update happens (ie file date/time stamp
changes). I had heard that there is a native method in .Net for doing
just this but can't see it. Anyone able to help please?

JGD

You might check out System.IO.FileSystemWatcher(). An example can be found
here: http://abstractvb.com/code.asp?A=1081
 
Back
Top