how can i read from the documents directory in the iphone at run time?
<p>I'm implemanting in an iphone app a .plist file that contain some initial parameters that i'll use later in the app, i create a NSMutableArray myArray with a NSMutableDictionary with some keys then i create the file: </p>

<pre><code>NSArray * paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,  NSUserDomainMask, YES);
NSString * documentsDirectory = [paths objectAtIndex:0];
NSString *filePath = [documentsDirectory stringByAppendingString:@"Initial.plist"];
[myArray writeToFile:filePath atomically:YES];
</code></pre>

<p>i acccess the content of this file as:</p>

<pre><code>NSMutableArray *temp= [[NSMutableArray alloc]initWithContentsOfFile:filePath];
</code></pre>

<p>everthing works fine in the simulator but when i run a test in a device the content of temp always is null, i don't have any idea why i get a nil Array maybe i'm doing somthing wrong accessing the file.</p>
