iOS 获取当前用户的用户路径并写入文件
NSString *path = [[@"~" stringByExpandingTildeInPath] stringByAppendingString: @"/tmp.txt"]; [path writeToFile:path atomically:YES encoding:NSUTF8StringEncoding error:nil];
Stay hungry,stay foolish.
NSString *path = [[@"~" stringByExpandingTildeInPath] stringByAppendingString: @"/tmp.txt"]; [path writeToFile:path atomically:YES encoding:NSUTF8StringEncoding error:nil];