title: WritePrivateProfileString is not adding property to the end
body: <p>I am writing some properties in a ini file using <code>WritePrivateProfileString</code> function and everything works fine but when I add text with multiple lines, there is a problem.</p>
  
  <p>Here is the code and output.</p>
  
  <pre><code>WritePrivateProfileString(_T("General"), _T("Name"), OLE2CT(text), FilePath);
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>[General]
  Name=mytext
  </code></pre>
  
  <p>.</p>
  
  <pre><code>text = address\nstreet\nhouse
  WritePrivateProfileString(_T("General"), _T("Address"), OLE2CT(text), FilePath);
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>[General]
  Name=mytext
  Address=address
  street
  house
  </code></pre>
  
  <p>But when after adding a multiple line item, i add another item, instead of adding this to end it adds new line just after Address line</p>
  
  <pre><code>text = city
  WritePrivateProfileString(_T("General"), _T("City"), OLE2CT(text), FilePath);
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>[General]
  Name=mytext
  Address=address
  City=city
  street
  house
  </code></pre>
  
  <p>but the output should be </p>
  
  <pre><code>[General]
  Name=mytext
  Address=address
  street
  house
  City=city
  </code></pre>
  
  <p>What is problem with my code?</p>