Why are you reading each line of the INI file? Don't you know the section and value name to update it directly?
_________________________
Home page: http://www.kixhelp.com/hb/