Objective-C学习-如何读取输出文件内容
这次我实现了读取文本文件并且输出里面的内容@autoreleasepool {NSString *string1 = [[NSString alloc] initWithContentsOfFile: @"/Users/mark/Desktop/c.txt"];NSLog(@"%@" ,string1);}运行输出:2011-10-30 14:55:03.780 ocStudy[345:707] hello,this is a outputing test...