Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *appFile;
- NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
- NSString *documentsDirectory = [paths objectAtIndex:0];
- appFile = [documentsDirectory stringByAppendingPathComponent:@"myFile"];
- //this creates the file path
- NSDictionary* tempDict = [[NSDictionary alloc]initWithContentsOfFile:appFile];
- //this gets the data from storage
- [tempDict writeToFile:appFile atomically:YES];
- //this updates the data to storage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement