title: Create new file and read it using NSFileManager objective c
body: <p>question: I want to write to a new file some data that I already have into a NSMutableData . </p>
  
  <p>I was reading in several places about this but it's not clear at all. 
  I was coding the next and It does not crash but I don´t know how to manipulate the "new file" since I don't know how to read it.</p>
  
  <pre><code>NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentationDirectory, NSUserDomainMask, YES);
  NSString* documentsDirectory = [paths objectAtIndex:0];
  NSString* dataPath = [documentsDirectory stringByAppendingPathComponent:@"NewDataFile.txt"];
  if (![[NSFileManager defaultManager] fileExistsAtPath:dataPath]) {
              [[NSFileManager defaultManager] createFileAtPath:dataPath contents:dataBuffer attributes:nil];
  </code></pre>
  
  <p>Can someone complement this code or explain how to handle new files?</p>