i have a C# Application that changes a .txt File all the time while running. do you guys have any idea to control the .txt file and show a message when it has not changed since ( for example 1 Minute). So i can check if my application stops running.
thanks for any help or suggestion.
Try this:
var lastWriteTime = File.GetLastWriteTime("someFilePath");
This returns the date and time the specified file or directory was last written to.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.