title: How to write changes to ".ini" file using POCO libraries?
body: <p>I'm trying to make changes to a ".ini" file using Poco::Util::IniFileConfiguration. I have the following example <em>ini</em> file:</p>
  
  <pre><code>[Test]
  IP = 192.168.1.1
  </code></pre>
  
  <p>I want to be able to write a new IP to the file. What I have so far is:</p>
  
  <pre><code>#include "Poco/Util/IniFileConfiguration.h"
  #include &lt;iostream&gt;
  
  int main( int argc, char *argv[] ) {
    Poco::AutoPtr&lt;Poco::Util::IniFileConfiguration&gt; pConf( new Poco::Util::IniFileConfiguration( "file.ini" ) );
    if ( pConf-&gt;has( "Test.IP" ) ) {
      try {
        std::cout &lt;&lt; pConf-&gt;getString( "Test.IP" ) &lt;&lt; std::endl;
        pConf-&gt;setString( "Test.IP", "127.0.0.1" );
        std::cout &lt;&lt; pConf-&gt;getString( "Test.IP" ) &lt;&lt; std::endl;
        // TODO Make changes permanent; write to file!
      } catch ( Poco::SyntaxException&amp; e ) {
        std::cerr &lt;&lt; "writeValue: " &lt;&lt; e.displayText() &lt;&lt; std::endl;
        return -1;
      }
    }
    return 0;
  }
  </code></pre>
  
  <p>This code prints the following:</p>
  
  <pre><code>192.168.1.1
  127.0.0.1
  </code></pre>
  
  <p>The IP is changed on runtime but it doesn't write the changes to disk (file.ini is not changed). Is there an easy way to achieve this? </p>
  
  <p>Thank you!</p>