title: Read file in Xcode project with Swift
body: <p>I made a method to read a file from the temporary folder. I use the following lines to get the document's path:</p>
  
  <pre><code>path = NSTemporaryDirectory().stringByAppendingPathComponent(folder)
  path = path.stringByAppendingPathComponent(fileName + "." + fileType)
  </code></pre>
  
  <p>And it works great. My question is: how do I get the path for a file located in the main folders of the Xcode project? They are two text files that I drag and drop from a folder to the Xcode project. I selected the option "copy files if needed" when dropping the files. Thanks!</p>