title: Remove comments in properties file java
body: <p>when i updated the properties file the comments are also updated along the data .is there any possible way to remove the comments or updating the data without comment.</p>
  
  <p>Here i update the file 4 times each time the date-time stamp append as a comment</p>
  
  <pre><code>#Thu May 19 17:53:42 GMT+05:30 2011
  Key_1=DSA_1024
  #Thu May 19 17:53:43 GMT+05:30 2011
  Key_2=DSA_1024
  #Thu May 19 17:53:43 GMT+05:30 2011
  Key_3=DSA_1024
  #Thu May 19 17:53:44 GMT+05:30 2011
  Key_4=DSA_1024
  </code></pre>
  
  <p>code</p>
  
  <pre><code>  Properties prop=new Properties();
              String currentDirectary=System.getProperty("user.dir");
              String path=currentDirectary+"/Resource/Key.Properties";
              FileOutputStream out=new FileOutputStream(path,true);
              prop.setProperty("keyName","DSA_1024");
              prop.store(out, null);
  </code></pre>