I have a C# project where I use File System Watcher to detect new files in a directory. Works fine but only when file is moved to that directory
When a process creates a file **directly** into the FileWatcherSupervised directory the file can be detected before the writing process has finished the file and result will be "half files" detected.
The project is to create a FileSystemSypervisor using FileSystemWatcher in C#
and a c# file writing program that is slow and constantly write to a file to test the functionality of the FileSystemSupervisor.
Suggestion on design:
FileSystemSupervisor has fillinfield for directory and start/stop supervise
FileCreater has fillinfield for directory, pace for writing, start/stop.
The filecreator is don in the simpliest way. This is just a dummy/test pgm
The filecreator can be run as several instancies to simulate that many processes creates files in the same directory
The FileSystemSupervisor can check if the file is posible to Open for read/write with [login to view URL] and then simply close it. This is a way to find out if the file is in use by another process but not 100%. If the FileSystemSupervisor detects a file but also detects that it is in use it should keep on trying on that file and still supervise if other files are created.
## Deliverables
I want the project done in Visual Studio 2005