title: Convert array to an .ini file
body: <p>I need to parse an <code>.ini</code> file into an array, and later change the values of the array and export it to the same <code>.ini</code> file.
  I managed to read the file, but didn’t find any simple way to write it back.
  Any suggestions?</p>
  
  <p>Sample <code>.ini</code> file:</p>
  
  <pre class="lang-none prettyprint-override"><code>1 = 0;
  2 = 1372240157;    // timestamp.
  </code></pre>