title: How to read data from NSDocumentDirectory
body: <p>Hi everyone I am working on an application which records the user sound and save that to NSDocumentDirectory.The data files are saving well.But the problem is that i want to play those files.I am using the table view for this to populate it with the number of files in the NSDocumentDirectory.But the table shows only one cell the current sound file.I am doing mistake somewhere please help me out.
  I am using this code to play.</p>
  
  <pre><code>-(void)PlayAudio
  {
  
  
      NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
  
      NSString *documentsDirectory = [paths objectAtIndex:0];
  
      NSLog(@"strffdsa %@",documentsDirectory);
      NSURL *fileURL = [NSURL fileURLWithPath:recorderFilePath];
  
      player =    [[AVAudioPlayer alloc] initWithContentsOfURL: fileURL error: nil];
      player.numberOfLoops = 0;
      //[fileURL release];
  
      [player play];
      [player setDelegate: self];
  
  }
  </code></pre>
  
  <p>Where recorderFilePath is the path of file.The path is new everytime with the help of NSDate frmattor.But not getting how to populate the table view with all the files residing in the DocumentDirectory.</p>
  
  <p>Please-2 help me...I am new to this technology.</p>
  
  <p>Thanks in advance to all ........</p>