#include <Foundation/Foundation.h>

int
main (void)
{
  CREATE_AUTORELEASE_POOL(pool);
  NSString *name = @"Overwritten!";

  if ([name writeToFile: @"/tmp/permissionstestFile.txt" atomically: YES])
    {
      NSLog (@"Success");
    }
  else 
    {
      NSLog (@"Failure");
    }
  RELEASE(pool);
  return 0;
}
