Monday, July 31, 2006

Using C#, How to monitor a basic text file to determine if the file has been modified?
I am just looking to return a bool if the text file has been modified. I am not trying to determine what data has been changed.

If you want to continuously poll your file for modifications, then FileSystemWatcher would be of help.
http://msdn2.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx

No comments: