not sure what you try to do here but sure thing, it's not working.
you open ini-file like regular text-file but then you try to use readprofilestring() which syntax is also wrong.

now, if your file is ini, you don't need any kind of open close or readline nor writeline.
ini-files use writeprofilestring and readprofilestring.
_________________________
!

download KiXnet