#import <Foundation/NSObject.h>
#import <Foundation/NSString.h>
#import <Foundation/NSFileManager.h>
int main (int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSString *fName = @"testfile";
NSFileManager *fm;
fm = [NSFileManager defaultManager];
if ([fm fileExistsAtPath:fName] == NO){
NSLog(@"File doesn't exist!");
NSLog(@"Try to create file: testfile");
if ([fm createFileAtPath:fName contents:nil attributes:nil] == YES){
NSLog(@"Succeed create the file: testfile");
};
}
[pool drain];
return 0;
}