DarkKnight
Golden Member
I want my application to be able detect when a file has been modified.
My initial idea is to store the file's timestamp in a variable, and when I reopen the file, check to see if the new timestamp is different. The problem I'm running into is that I dont know how to get a file's timestamp using C. Does anyone know how to do this?
Also, if you know of a better way of finding out whether a file has been modified, please let me know.
My initial idea is to store the file's timestamp in a variable, and when I reopen the file, check to see if the new timestamp is different. The problem I'm running into is that I dont know how to get a file's timestamp using C. Does anyone know how to do this?
Also, if you know of a better way of finding out whether a file has been modified, please let me know.