title: Properties file backslash and semicolon
body: <p>I have a Java class to write/append into existing properties file. After appending, it's replacing all single backslash with double backslash and it places single backslash before every semicolon.</p>
  
  <pre><code>protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    // TODO Auto-generated method stub
    response.setContentType("text/html");
    PrintWriter out= response.getWriter();
    String systemPath=request.getParameter("SYSTEMPATH");
    String deployPath = getServletConfig().getServletContext().getRealPath("/WEB-INF/DB.properties");
    InputStream stream = getServletContext().getResourceAsStream("/WEB-INF/DB.properties");
    Properties prop = new Properties();
    prop.load(stream);
    prop.setProperty("Workspace", systemPath);
    File file = new File(deployPath);
    FileOutputStream fileOut = new FileOutputStream(file);
    prop.store(fileOut, "sample properties");
    fileOut.close();
  }
  </code></pre>
  
  <p>Before appending:</p>
  
  <blockquote>
    <p>Url=jdbc:oracle:thin:@//192.168.1.22:1521/</p>
    
    <p>Workspace=D:\RACHEL\SW\Antivirus</p>
  </blockquote>
  
  <p>after appending:</p>
  
  <blockquote>
    <p>Url=jdbc:oracle:thin:@//192.168.1.22:1521/</p>
    
    <p>Workspace=D:\\RACHEL\\SW\\Antivirus</p>
  </blockquote>
  
  <p>How to remove these extra backslashes?</p>