write-ini function

Write configuration options in file or API