title: How to get files into library directory for iphone device testing
body: <p>I have tested my app on the ios simulator and using the following code:</p>
  
  <pre><code>NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
  NSString *documentsDirectory = [paths objectAtIndex:0];
  NSString *dictdir = [documentsDirectory stringByAppendingPathComponent:@"dict.plist"];
  NSLog(dict);
  </code></pre>
  
  <p>I found the path in which to save my file, <code>dict.plist</code> so that it can be used later by the app.</p>
  
  <p>I am now testing on my device and the place where I am intending to store my <code>.plist</code> file is </p>
  
  <blockquote>
    <p>var/mobile/Applications/......./Documents/freq.plist</p>
  </blockquote>
  
  <p>First of all, I know that non-user data is meant to be saved in the library folder, so how do I change my code so that the path is leading to the <code>..../library/ directory</code>?</p>
  
  <p>And how do I actually put my file in this directory? Right now using the 'organizer', I managed to get the file into the app sandbox, but not in a particular folder.</p>