- NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
-
NSString *documentDirectory = [paths objectAtIndex:0];
-
NSString *filename = [documentDirectory stringByAppendingPathComponent:@"textFile.txt"];
-
NSLog(@"filename = %@", filename);
-
NSLog(@"documentDirectory = %@", documentDirectory);
-
-
-
NSString *tempPath = NSTemporaryDirectory();
-
NSString *tempFile = [tempPath stringByAppendingPathComponent:@"tempFile.txt"];
-
-
NSLog(@"tempPath = %@", tempPath);
- NSLog(@"tempFile = %@", tempFile);