读取文本文件并获取iPhone Objective-C组件
我有一个当前看起来像这样的文本文件:
<joke>What do you call an Italian man with one toe?</joke>
<answer>Roberto!!</answer>
<joke>What is the best time to go to the dentist? </joke>
<answer>2:30 (Tooth Hurty)!!</answer>
<joke>Why was the doctor mad?</joke>
<answer>Because he had no patients!!</answer>
我只是想知道如何获取
和 部分之间的文本然后将它们放入一个数组中。
I have a text file that currently looks like this:
<joke>What do you call an Italian man with one toe?</joke>
<answer>Roberto!!</answer>
<joke>What is the best time to go to the dentist? </joke>
<answer>2:30 (Tooth Hurty)!!</answer>
<joke>Why was the doctor mad?</joke>
<answer>Because he had no patients!!</answer>
I just wanted to know how I can get the text inbetween the <joke>
and the </joke>
parts and then put them into an array.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)