I am using filestream and streamreader to read a file and display the results in a textbox. The content of the textfile is changed by an other application. Is it possible to monitor these content changes and repeat the reading process?
Thanks
Printable View
I am using filestream and streamreader to read a file and display the results in a textbox. The content of the textfile is changed by an other application. Is it possible to monitor these content changes and repeat the reading process?
Thanks
Reading the file is just a matter of executing the same code again. You monitor changes to the file system with a FileSystemWatcher component.