文件路径 封装常用代码
-(NSString *)filePath
{
NSString *docPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDirectory, YES)objectAtIndex:0];
NSString *path = [docPath stringByAppendingPathComponent:@"texts"];
// NSString *path = [NSHomeDirectory() stringByAppendingPathComponent:@"Library/Caches/texts"]; //两种方法都可以
return path;
}