Properties

Properties pro = new Properties();

pro.setProperty("NJ","NanJing");

File file = new File("D:"+File.separator+"area.properties");

try{

pro.store(new FileOutputStream(file),"hello");

}

catch...


你可能感兴趣的:(properties,File)