title: stringWithContentsOfFile:usedEncoding:error: does not work
body: <p>I'm trying to import a csv created by filemaker and copied onto my device using iTunes filesharing. I'm stuck on what should be a straightforward step. I just can't see where I'm going wrong. Tried the alternative method and setting UTF8 encoding. Also tried exporting from filemaker as xml UTF8, and also tried deleting the app from the phone and rerunning. It doesn't seem to read the encoding even if I specify it. The following code gives me this console output. </p>
  
  <p>File exists
  Import (null) Error Domain=NSCocoaErrorDomain Code=264 "The operation couldn’t be completed. (Cocoa error 264.)"</p>
  
  <pre><code>-(void)importDatabase {
  NSString *importString;
  NSError *error;
  NSString *documentsDirectoryPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
  if ([[NSFileManager defaultManager] fileExistsAtPath:[documentsDirectoryPath stringByAppendingString:@"/iPhone.csv"]]) {
      NSLog(@" File exists");
      NSStringEncoding encoding;
      importString = [NSString stringWithContentsOfFile:[documentsDirectoryPath stringByAppendingString:@"/iPhone.csv"] usedEncoding:&amp;encoding error:&amp;error];
  NSLog(@"Import %@ %@ ",importString, error);
  } else {
      NSLog(@" File doesn't exist");
  }
  </code></pre>
  
  <p>}</p>