title: NSFileHandle fileHandleForWritingAtPath: return null!
body: <p>my iPad app has a small download facility, for which I want to append the data using an NSFileHandle. The problem is the creation call only returns null file handles. What could be the problem? Here is the three lines of code that are supposed to create my file handle:</p>
  
  <pre><code>NSString *applicationDocumentsDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
  self.finalPath = [applicationDocumentsDirectory stringByAppendingPathComponent: self.fileName]; 
  NSFileHandle *output = [NSFileHandle fileHandleForWritingAtPath:self.finalPath];
  </code></pre>
  
  <p>I checked the file path, and I could see nothing wrong.</p>
  
  <p>TYIA</p>