title: How to write/read a file from/to Xcode 6 new directory structure?
body: <p>I have developed an app which captures an URL and write it locally with some changes to be used later in a Webview. However, after upgrade it to Xcode 6, I have noticed that the directory structure changes every time that it runs. The following commands show me it:</p>
  
  <pre><code>    rootUrl = [fm URLForDirectory:NSLibraryDirectory
                           inDomain:NSUserDomainMask
                  appropriateForURL:nil
                             create:YES
                              error:&amp;error]
  </code></pre>
  
  <p>The result is something like this:
  Root directory: file:///Users/pedrolopes/Library/Developer/CoreSimulator/Devices/1E639C44-89CB-4E1F-8E7A-74AF689F937A/data/Containers/Data/Application/246677E0-B577-4D99-963D-BE3DE3BAAC2A/Library/</p>
  
  <p>I need to store (and delete) files from internet which changes every week and also I need to keep a file that will be inserted into these stored files to be used later.</p>
  
  <p>Is there a way to locate a place to do it into the directory structure of my app?</p>
  
  <p>Thanks,</p>
  
  <p>Pedro.</p>