Translate

Sunday, March 18, 2012

delete document directory file

// delete document directory file
       
        NSFileManager *filemgr;
        NSString *currentpath;
       
        NSString *documentsDirectory2 = [NSString stringWithFormat:@"%@/library",[DocumentDirectory libraryDirectoryPath]];
        currentpath = [documentsDirectory2 stringByAppendingPathComponent:@"settings.plist"];
       
        filemgr = [NSFileManager defaultManager];
        NSError *error = nil;
       
        [filemgr removeItemAtPath: currentpath error:&error];

No comments:

Post a Comment