title: Java - Writing file location to Properties file
body: <p>I'm writing the <strong>FILEPATH</strong> parameter into the properties file like below..</p>
  
  <pre><code>String newFilePath = txtFilepath.getText();
  Properties prop = new Properties();
  java.io.File propFile = new File("src/com/app/tool/properties/settings.properties");
  prop.setProperty("FILEPATH", newFilePath);
  System.out.println("newFilePath "+newFilePath);
     try {
       prop.store(new FileOutputStream(propFile), "New File location");
      } catch (IOException ex) {
       ex.printStackTrace();
      }
  </code></pre>
  
  <p>The Filepath is  <strong>D:\filelog.txt</strong></p>
  
  <p>While writing, the console prints like..</p>
  
  <pre><code>newFilePath D:\filelog.txt
  </code></pre>
  
  <p>But when I open the properties file, content is like..</p>
  
  <pre><code>FILEPATH=D\:\\filelog.txt.
  </code></pre>
  
  <p>Anyone suggest me , what I'm really m(i)essing here ..?</p>