routhly work now.
With three small util to read/write ini files
ini_rw file_name section_name key [value]
ini_read file_name section_name key
ini_write file_name section_name key vlaue