M
Marcin Go³dyn
Hi
I have a properties file access.properties and i try to add something to
this empty file. I use this code :
Properties properties = new Properties();
try {
properties.load(new FileInputStream("access.properties"));
} catch (IOException e) {
System.out.println(e.getMessage());
}
properties.setProperty("/db","1");
try {
properties.store(new FileOutputStream("access.properties"), null);
} catch (IOException e) {
System.out.println(e.getMessage());
}
but it isnt work file is still empty 0 exceptions why??
Marcin Goldyn
I have a properties file access.properties and i try to add something to
this empty file. I use this code :
Properties properties = new Properties();
try {
properties.load(new FileInputStream("access.properties"));
} catch (IOException e) {
System.out.println(e.getMessage());
}
properties.setProperty("/db","1");
try {
properties.store(new FileOutputStream("access.properties"), null);
} catch (IOException e) {
System.out.println(e.getMessage());
}
but it isnt work file is still empty 0 exceptions why??
Marcin Goldyn