public static void main(String[] args) throws FileNotFoundException, IOException {
File file = new File("f:");
Properties tian = new Properties();
tian.load(new FileInputStream(new File(file,"tian.properties")));
Iterator it=tian.entrySet().iterator();
while(it.hasNext()){
Map.Entry entry=(Map.Entry)it.next();
System.out.println(entry.getKey().toString()+" = "+entry.getValue());
}
}
版权声明:本文为u013789252原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。