

StreamReader reader = new StreamReader(inputFileStream) InputFileStream = new FileStream(fileName, Private void ProcessFile(String fileName) } // end public void FileCreated(Object sender, FileSystemEventArgs e) Private void FileCreated(Object sender, FileSystemEventArgs e) when there are files created at the folder.įileSystemWatcher.Created += new FileSystemEventHandler(FileCreated) Instruct the file system watcher to call the FileCreated method = + "toTechcoil" įileSystemWatcher = new FileSystemWatcher(folderToWatchFor) įileSystemWatcher.EnableRaisingEvents = true Private FileSystemWatcher fileSystemWatcher The following FileInputMonitor class is an implementation for the sample use case.
