本帖最后由 Lxy 于 2014-10-27 21:09 编辑
- NSURL * url = [[NSURL alloc] initWithString:@"/Users/Tan/Desktop/123.txt"];
- NSString *s7 = [[NSString alloc] initWithContentsOfURL:url encoding:NSUTF8StringEncoding error:nil];
-
- NSLog(@"%@", s7);
- return 0;
复制代码 为什么s7输不出123.txt文件的内容?
输出结果:2014-10-27 18:06:07.867 16-NSString[21237:303]
(null) Program ended with exit code: 0 |