Hi I saved a URL that has a path to a directory where I will be storing information, Now I want to retrieve the information but I don't know how to receive the items, I am trying to use initWithContentsOfURL but I dont know what the encoding would be?
This is how I saved the URL
//DirectoryPaths has the NSCAcheDirectory
dirPath = [[directoryPaths objectAtIndex:0] URLByAppendingPathComponent:[NSString stringWithFormat:@"photos.jpg"]];
How do I get a path to the URL now? I tried
NSString *pathToFile = [[NSString alloc] initWithContentsOfURL:dirPath
usedEncoding:nil
error:&error];
I have no clue what the encoding would be since I didnt use one to store the file?