Chinaunix首页 | 论坛 | 博客
  • 博客访问: 296939
  • 博文数量: 69
  • 博客积分: 3093
  • 博客等级: 中校
  • 技术积分: 626
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-17 13:48
文章分类

全部博文(69)

文章存档

2011年(27)

2010年(11)

2009年(31)

分类: C/C++

2011-01-17 16:46:39

  1. NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
  2.     NSString *documentDirectory = [paths objectAtIndex:0];
  3.     NSString *filename = [documentDirectory stringByAppendingPathComponent:@"textFile.txt"];
  4.     NSLog(@"filename = %@", filename);
  5.     NSLog(@"documentDirectory = %@", documentDirectory);
  6.     
  7.     
  8.     NSString *tempPath = NSTemporaryDirectory();
  9.     NSString *tempFile = [tempPath stringByAppendingPathComponent:@"tempFile.txt"];
  10.     
  11.     NSLog(@"tempPath = %@", tempPath);
  12.     NSLog(@"tempFile = %@", tempFile);
阅读(1423) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~