I am setting some string content using prop.put function and writing it to a .txt file.
Properties prop = new Properties();
OutputStream output = null;
String uName = "Name=Anand, Age=25";
prop.put("User", uName);
output = new FileOutputStream("src/main/resources/node.txt");
prop.store(output, null);
When I open the node.txt, it is written as User=Name\=Anand, Age\=25. How to write the same to a file without \. i.e., User="Name=Anand, Age=25". Can someone help me here ?