Hallo,
wenn ich mit dem folgenden Code eine properties-Datei schreibe, wird sie in der C:// gespeichert anstatt in der classpath wie ich dachte:
Wie kann man die properties-Datei direckt in dem classpath speichern ?
wenn ich mit dem folgenden Code eine properties-Datei schreibe, wird sie in der C:// gespeichert anstatt in der classpath wie ich dachte:
Code:
Properties properties = new Properties(); properties.setProperty("a", "1"); properties.setProperty("b", "2"); try{ Writer out = new FileWriter("niko.properties"); properties.store(out, "ddd"); out.close();
Comment