Event for new file creation?

Is there an event that I can attach to that will fire when a new file is created in a particular directory? (win32 app)
LVL 5
jjacksnAsked:
Who is Participating?
 
Timbo87Connect With a Mentor Commented:
Yes there is. You can use the FileSystemWatcher class in the System.IO namespace and then create an event handler for the Created event.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIOFileSystemWatcherClassTopic.asp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.