Here’s what I am doing:
I am logging messages and date time to a text file which I did successfully. Now I want to add the same to a Listview (or any other control which can be used to achieve this), also as and when the file is updated the Listview should be updated.
I am new to c# so excuse my lack of knowledge.
You can use FileSystemWatcher
Instantiate an FileSystemWatcher :
Set the notify filter : what events should be observed
Specify that the FileWatcher can raise events :
Add event handler for the change event for all files from that folder :
Capture the change event :