【发布时间】:2012-08-04 14:30:05
【问题描述】:
我,我正在编写一个必须读取 txt 内容的应用程序。 这个txt就是这样一个属性文件,列表格式如下:
1|Chapter 1|30
2|Chapter AA|7
3|Story of the United States|13
........
键以“|”分隔。
我用谷歌搜索了很多,希望能找到任何“实用的解决方案”,但什么也没有…… 如何读取这些信息并设置许多对象,例如:
for NSInterger *nChapter = the first element
for NSString *title = the second element
for NSInteger *nOfPages = the last element ?
【问题讨论】:
-
抱歉...已修复!谢谢;)
标签: iphone ios xcode properties