Manikandan Thiagarajan
asked on
i want to append the properties file line by line could you give me a code for that
i want to append the properties file line by line could you give me a code for that
You probably want to load properties from the file
add new property and store the them to file again
add new property and store the them to file again
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You could of course append your properties line by laine and save the
property file ater you set each property
This is of course equivalent to appending the file directly, but
takes a little bit less code.
property file ater you set each property
This is of course equivalent to appending the file directly, but
takes a little bit less code.
PrintWriter printer = new PrintWriter(new OutputStreamWriter(out));
printer.println("line1=abc
printer.println("line2=def
out.close();