? /*讀*/?
? Properties settings = new Properties();
??String name = "printConfig";
??try {
????? FileInputStream in = new FileInputStream(name + ".properties");?
????? settings.load(in);
????? String value = Integer.parseInt( (String) settings.get("name") ;
??} catch (IOException e) {e.printStackTrace();}
? /*寫*/
? Properties settings = new Properties();
? String name = "printConfig";
??FileOutputStream out = null;
??try {
????? out = new FileOutputStream( name + ".properties" );
????? settings.store(out,"");
??} catch (Exception e1) {
????? e1.printStackTrace();
??}