I write NSString to a plist file, but after writing it to plist, and when I try to open, I get the following message "This document" mylist.plist "cannot be opened XML parser error: Unexpected character 2 on line 1 Style parser error Old Style: Unexpected ';' or '=' after the key on line 1 "
Here is my code:
NSString *temp = [NSString stringWithFormat:@"%@\n Selection is %@ \n %d for %.2lf = %.2lf", [NSDate date], @"IPC", 2, 42.34, 2 * 42.34];
[temp writeToFile:[self getPathName:@"mylist.plist"] atomically:YES];
Any help would be appreciated.
Thank,
source
share