It works in writing and reading, that was the "Yes" part.
But it will mix up "[nick]", "]nick[", "[nick[" and "]nick]".
Now maybe that's no problem with this script, because you apparently use some kind of passwords and maybe you don't add users to the inifile automatically. In other circumstances, this can be a problem - ranging from annoying mix-ups to a serious "exploit" of a script.
Yes but now still no having any problem's and reading - writing working perfect with the manual
/writeini and
$readini options.