jubincn

导航

2013年4月17日 #

Java读写Properties文件及JavaIO中字节流和字符的转换

摘要: 读写properties文件Java读写Properties文件是一个比较常见的需求,一般的做法是将properties文件读到Properties类对象中,通过Properteis对象来操作。下面是一段实例代码: /** * Read Properties file with ASCII codes only */ public static Properties getProperties(String fileName, String path){ Properties props = new Properties(); Inp... 阅读全文

posted @ 2013-04-17 20:14 jubincn 阅读(653) 评论(0) 推荐(0)