title: Delphi create a Inifile
body: <p>I want to create/write an inifile in Delphi but it doesn't work.
  To write/create a inifile I use this script:</p>
  
  <pre><code>ini := TIniFile.Create('Test.ini');
  try
  ini.WriteInteger('Test', 'Port', 33645);
  ini.WriteBool('Test', 'ListenOnStart', true);
  ini.WriteBool('Test', 'UpdateCheck', true);
  ini.UpdateFile;
  finaly
  ini.free;
  end;
  </code></pre>
  
  <p>I get the error "Unable to write to Test.ini.", when I execute it as admin I don't get this error but it still doesn't work.</p>