访问.INI文件(java) [英] Accessing an .INI File( java )
本文介绍了访问.INI文件(java)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想编写一个程序,该程序需要在Config.INI文件中存储数据库连接字符串和Web应用程序之类的信息.现在,我知道有访问.INI文件(节等)的特殊方法,而不是将其视为普通文本文件.
I want to write a program that needs to store information such as the Database Connection String and web Application in a Config.INI file. Now I know there are special methods to access .INI files (sections and so forth) instead of treating it as normal text file. how ?
推荐答案
您正在寻找的被称为[ ^ ]使用Java语言.所有您需要做的就是使用google搜索"Java属性文件",您会发现很多示例.您可能要先从这里开始: http://www.mkyong.com/java/java- properties-file-examples/ [^ ].
问候,
Manfred
What you are looking for is called aproperty file
[^] in Java lingo. All you have to do is google for "Java property file" and you''ll find lots of samples. You might want to start here though first: http://www.mkyong.com/java/java-properties-file-examples/[^].
Regards,
Manfred
请参阅此教程 [ ^ ].
这篇关于访问.INI文件(java)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文