Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
Properties conf = new Properties();
try{
conf.load(new FileInputStream(new File("test.properties")));
conf.setProperty("intLen", "15");
conf.store(new FileOutputStream(new File("test.properties")), null);
}catch(Exception e){
e.printStackTrace();
conf.store(new FileOutputStream(new File("test.properties")), null);
RMI_17 hat gesagt.:Ok es geht!
Hab was übersehen. Aber es ändert mir die Formatierung des Files, kann man das umgehen?
MFG Rmi
TreeMap map = new TreeMap( prop ); // prop = dein Properties-Objekt
try {
BufferedWriter bw = new BufferedWriter( new FileWriter( file.getAbsolutePath() ) );
/* Get each line in this TreeMap as an Iterator */
Iterator it = map.entrySet().iterator();
/* Write all entries */
while( it.hasNext() ) {
String line = it.next().toString();
bw.write( line + NL ); // NL = System.getProperty("line.separator")
}
/* Clear Buffer */
bw.flush();
/* Clear Resources */
bw.close();
} catch( IOException e ) {
e.printStackTrace();
}