If I understood well, you are trying to save a plist file, in your application's document directory. This is how you read a plist file embedded in your app bundle, and later save it in your documents directory:
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
// If your plist file is in the app bundle, and is called "file.plist":
NSString *path = [[NSBundle mainBundle] pathForResource:@"file" ofType:@"plist"];
NSArray *array = [[NSArray alloc] initWithContentsOfFile:path];
// Do something with your array...
// If your plist has to be created or saved at runtime, you can't store it in the
// main bundle, but you can do it in the app's document directory:
NSString *documents = [self documentsDirectory];
path = [documents stringByAppendingPathComponent:@"another_file.plist"];
[array writeToFile:path atomically:YES];
[array release];
// ~/Library/Application Support/iPhone Simulator/User/Applications/[YOUR_APP_ID_HERE]/Documents/another_file.plist
NSLog(@"%@", path);
// You can read the file later again doing initWithContentsOfFile: again
// with the new file path.
[window makeKeyAndVisible];
}
- (NSString *)documentsDirectory
{
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
return [paths objectAtIndex:0];
}
The file.plist file could be something like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<string>test</string>
<string>wetwert</string>
<string>dfdfh</string>
<integer>345634</integer>
</array>
</plist>