It seems that I came across the problem of saving the XML file from a string (this is done on the iPhone) The file itself exists and is included in the project (therefore, within the workspace), and all the instructions that I get from the code fragment that follows passes without any Any errors in the emulator and crash on the iPhone (error 513), but in any case the file is not saved!
{
Hits = config->Hits;
NSString* filenameStr = [m_FileName stringByAppendingFormat: @".xml" ];
NSString* pData = [self getDataString];
NSError *error;
if(![pData writeToFile: filenameStr atomically: FALSE encoding:NSUTF8StringEncoding error:&error])
{
NSLog(@"Houston - we have a problem %s@\n",[error localizedFailureReason]);
return false;
}
return true;
}
Any help would be appreciated, -A
source
share