在iPhone上阅读古典ini文件 [英] reading classical ini file on iPhone

查看:124
本文介绍了在iPhone上阅读古典ini文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何解析ini文件吗?我想我需要正则表达式。



我在文件中只有这种模式:



varName =值;



非常感谢!



更新:这里你去: https://github.com/DrMoriarty/MetroEditor/tree/master/MetroEditor/ini

解决方案

有一个用目标C编写的INI文件解析器 这里 - 直接使用它,或者阅读消息来源以获取一些提示。



<编辑:编辑:因为该链接显示已死,请尝试此替代方案 - 谢谢mc007


does anybody knows how to parse an ini file ? I guess I need a regular expression or something.

I have only this pattern in the file :

varName=value;

Thanks a lot !

update : here you go : https://github.com/DrMoriarty/MetroEditor/tree/master/MetroEditor/ini

解决方案

There's an INI file parser written in objective C available here - either use it directly, or read the source to pick up a few tips.

EDIT: as that link appears dead, try this alternative - thanks mc007

这篇关于在iPhone上阅读古典ini文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆