title: Reading files from Documents directory using xcode
body: <p>with reference to my own question,
  <a href="https://stackoverflow.com/questions/9091810/uitable-is-not-getting-populated-with-nsmutablearray">UITable is not getting populated with NSMutableArray</a>  here i got all the file names into a table. And these files where stored in 'Resources' folder. Now i need to fill the same table from the files stored in a subfolder say 'sample' which is in documents folder of ios simulator. 
  Earlier i did this with the following code </p>
  
  <pre><code>files = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:
       [[NSBundle mainBundle] bundlePath] error:nil];
  search_results_array = [files filteredArrayUsingPredicate:
                      [NSPredicate predicateWithFormat:@"self BEGINSWITH[cd] 'h'"]];
  </code></pre>
  
  <p>here both files and search_results_array are arrays. Now the reading is not from resources. How can i edity it? anybody please help.</p>