2008-06-16
读取属性文件
private static void readProperties() throws IOException {
Properties props = new Properties();
InputStream inStream = Spike.class.getResourceAsStream("Test.properties");
props.load(inStream);
Enumeration enums = props.propertyNames();
while (enums.hasMoreElements()) {
String key = (String) enums.nextElement();
}
Properties props = new Properties();
InputStream inStream = Spike.class.getResourceAsStream("Test.properties");
props.load(inStream);
Enumeration enums = props.propertyNames();
while (enums.hasMoreElements()) {
String key = (String) enums.nextElement();
}
发表评论
- 浏览: 11334 次
- 性别:

- 来自: 大连

- 详细资料
搜索本博客
我的相册
5
共 2 张
共 2 张
最近加入圈子
链接
最新评论
-
技术和语言哪个更重要,欢 ...
什么是技术?什么是语言? 因为有晶体管技术,有集成电路技术,所以有今天的计算机, ...
-- by wolfbrood -
技术和语言哪个更重要,欢 ...
技术是创造语言的根本啊
-- by qichunren -
软件架构是的成长路程
长见识了!!多谢!!
-- by huangjiewen -
如何做一个成功的project
值得我学习啊!!
-- by huangjiewen -
技术和语言哪个更重要,欢 ...
技术是本啊!!!!
-- by liuxingyu3000






评论排行榜