read-ini function

Read configuration options from file or API