Guys,
Need your help on the below.
Have a simple application that allows the user to register on the website.
Have a properties file that i need to store the username & password with which the user would register.
The code is as below :-
---------------------------------------
Properties properties.put(userId, userPassword);
String fileName = this.getClass().getClassLoader().getResource("resources/registeredUser.properties").getFile();
FileOutputStream op = new FileOutputStream(fileName); properties.store(op, null);
op.flush();
op.close();
---------------------------------------
I do not see the new User Id's and Passwords in the Properties file
nor do i see any exceptions.
Thanks in advance,
-Navi