You will likely end up figuring out a solution if you actually make use of the error parameter there in the "writeToFile
" method:
e.g.:
NSError * error = NULL;
BOOL success = [content writeToFile:fileName atomically:NO encoding:NSUTF8StringEncoding error:&error];
if(success == NO)
{
NSLog( @"error saving to %@ - %@", fileName, [error localizedDescription] );
}