AUM 69 has an example of reading and writing to a .ini file (the menu example)

EDIT: unless you are using pure mode... sorry this might not help.