如何在ruby中读取INI文件 [英] How to read an INI file in ruby
本文介绍了如何在ruby中读取INI文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在ruby中读/写一个ini文件。我需要一个ini文件
How do I read/write an ini file in ruby. I have an ini file that I need to
- 阅读
- 更改条目
- 写入不同的位置
我如何在ruby中执行?
How would I do that in ruby? The documentation on this is bleak.
推荐答案
我最近使用了 ruby-inifile 。也许它的过度杀伤比这里的简单的片段...
I recently used ruby-inifile. Maybe it's overkill compared to the simple snippets here...
这篇关于如何在ruby中读取INI文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文