title: Load text file from specific location objective c
body: <p>I was wondering how to read a file from a specific location on ios.</p>
  
  <p>For example I'd quite like to have files of the same name stored in different locations for example.</p>
  
  <p>Project/Files/Text/1.txt</p>
  
  <p>Project/Files/MoreText/1.txt</p>
  
  <p>At the moment I can load files in but I can't see how to specify a specific directory. My program seems to load a file in regardless of where it is meaning I can only have one text file or the other working.</p>
  
  <p>I have tried using NSFileManager:</p>
  
  <pre><code>NSFileManager *filemanager = [NSFileManager defaultManager];
  
  NSArray *filelist = [filemanager directoryContentsAtPath:@"Text"];
  </code></pre>
  
  <p>but I later realised that this actually isn't doing anything. It just returns no objects. I've also seen NSBundle but haven't seen an example where a specific file is returned.</p>
  
  <p>I need the filenames to be the same for my algorithm which loads the files.</p>
  
  <p>Any help would be appreciated.</p>