If you want an example of manipulating a .ini file you can also take a look at this post.

Replace a value in an INI file
http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=1;t=007101