获取Documents目录
- NSArray*path=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
- NSString*documentsDirectory=[pathobjectAtIndex:0];
- NSString*filename=[documentsDirectorystringByAppendingFormat:@"thefFile.txt"];
获取tmp目录
copy