Alex Rivera | Logout

Get last file modification date of application data files?

Asked 2012-02-20T17:14:00.873
13

I have a plist file in my application data that i want to update from a webserver every 24 hours. Is there a way to check when the file is last modified or should i, in some way register the date and time when i update the file, and use that to compare to?

if (lastMod > currentDate){
    [arrayFromXml writeToFile:path atomically:YES];
}
Edit
Report

1 Answer

-3

you can store the NSDate in NSUserDefaults when saving..and then compare it with current time to check the difference,,

answered 2012-02-20T17:17:43.397

Your Answer