title: Reading a file from documents directory Objective-c
body: <p>I write a file to the documents directory of an app:</p>
  
  <pre><code>NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
      NSString *documentsDirectory = [paths objectAtIndex:0];
  
      // the path to write file
      NSString *file = [documentsDirectory stringByAppendingPathComponent:@"data.json"];
  
      [responseString writeToFile:file atomically:YES];
  </code></pre>
  
  <p>But how can I access the file?</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>NSString *filePath = [[NSFileManager defaultManager] pathForRessorce: @"data" ofType:@"JSON"];
  
      NSString *fileContent = [[NSString alloc] initWithContentsOfFile:filePath]; 
  
      SBJsonParser *parser = [[SBJsonParser alloc] init];
  
      NSDictionary *data = (NSDictionary *) [parser objectWithString:fileContent error:nil];
  </code></pre>
  
  <p>The file path is not populated...can somebody give me a hint?</p>
  
  <p>Thanks!</p>