Objective-C 文件读写总结

写入字符串到文件:

使用 writeToFile:atomically:encoding:error: 方法可以将字符串保存到磁盘文件中。

从文件读取字符串:

使用 stringWithContentOfFile:encoding:error: 方法可以从文件中读取字符串内容。

这是 iPhone 游戏开发学习总结的一部分。

ppt 文件大小:358KB