properties
一起看云海
这个作者很懒,什么都没留下…
展开
-
读取properties的内容
public static void main(String[] args) { Properties props = new Properties(); try { InputStream in = new BufferedInputStream(new FileInputStream(Utils.getTruePath()+原创 2015-05-25 10:22:30 · 362 阅读 · 0 评论 -
java 操作Properties文件
Properties文件也就是属性文件,用来存放一些属性供程序读取。 这些属性由“=”左边的key和“=”右边的value构成,基本结构如下: key=value 下面给出一个非常简单的Properties文件: #Fri Jul 13 14:26:52 CST 2012username=Jack password=123456 age=18 address=beijing转载 2015-05-25 09:35:49 · 279 阅读 · 0 评论