title: Write to file does not work
body: <p>When i try to write to file with this code:</p>
  
  <pre><code>NSString *path = [[NSBundle mainBundle] pathForResource:@"default" ofType:@"txt"];
  NSError *error = nil;
  NSString*s = @"some text";
  BOOL successful = [s writeToFile:path atomically:YES encoding:NSUTF8StringEncoding error:&amp;error];
  NSLog(@"%@",error);
  NSLog(@"%d",successful);
  </code></pre>
  
  <p>Nothing happens. NSLog says:</p>
  
  <pre><code>(null)
  1
  </code></pre>