title: Property file not reflecting the modified changes using Apache Commons Configuration
body: <p>I am trying to explore Apache commons configuration to dynamically load the property file and do modification in the file and save it.</p>
  
  <p>I wrote a demo code for the same.</p>
  
  <p>Code Snippet</p>
  
  <pre><code>    package ABC;
  
  
      import org.apache.commons.configuration.ConfigurationException;
      import org.apache.commons.configuration.PropertiesConfiguration;
      import org.apache.commons.configuration.reloading.FileChangedReloadingStrategy;
  
  
  
  
      public class Prop {
  
          public static void main(String[] args)
          {
  
              try {
  URL propertiesURL = Prop.class.getResource("/d1.properties");
  
              if (propertiesURL == null) {
                System.out.println("null");
              }
  String absolutePath=propertiesURL.getPath();
                  PropertiesConfiguration pc = new PropertiesConfiguration(absolutePath);
                  pc.setReloadingStrategy(new FileChangedReloadingStrategy());
                  String s=(String)pc.getProperty("key_account_sales");
                  System.out.println("s is " +  s);
                  pc.setAutoSave(true);
                  pc.setProperty("key_account_sales", "Dummy");
                  pc.save();
                  System.out.println("Modified as well");
                  String sa=(String)pc.getProperty("key_account_sales");
  
                  System.out.println("s is " +  sa);
              }catch(ConfigurationException ce)
              {
                  ce.printStackTrace();
              }
          }
  
      }
  </code></pre>
  
  <p>Although when I run the code multiple times, the updated value for the property is being properly shown but the changes are not seen in the Property file. </p>
  
  <p>I tried refreshing the entire workspace and the project but still the property file shows the previous entry whereas this code displays the updated entry in console.</p>
  
  <p>Why my property file is not getting updated?</p>
  
  <blockquote>
    <p>Well I noticed that a new file with same name was formed inside bin
    directory of my IDE workspace. This new file contains the required
    changes.</p>
    
    <p>However I still want that the old file should be updated with the new
    value and instead of creating a new file, it should update in the old
    file itself.</p>
  </blockquote>
  
  <p>My property file is located inside a Web Application package say </p>
  
  <blockquote>
    <p>Dem1</p>
  </blockquote>
  
  <p>by the name of </p>
  
  <blockquote>
    <p>Prop1.prop</p>
  </blockquote>
  
  <p>I want to read this property file from in another class say </p>
  
  <blockquote>
    <p>Reading.java</p>
  </blockquote>
  
  <p>located inside another package </p>
  
  <blockquote>
    <p>Dem2</p>
  </blockquote>
  
  <p>, do changes in this same property file and show it to another user.  It is a web application being deployed on an application server.</p>
  
  <p>Even after using the absolute path in a simple file (main function) it is not reflecting the changes in the same file but updating it in new file.</p>
  
  <p>I am doing a very slight mistake but can someone please help.</p>
  
  <p>Using absolute path I am not able to make changes in the same property file in normal main method also. Please suggest.</p>
  
  <blockquote>
    <p>New file in bin directory is created instead of updating the same file
    in src folder.</p>
  </blockquote>