if you use readprofile without the extra arguments, you get back the full list of sections.
Code:

$listOfSections = readprofilestring("myIniFile.ini","","")
$splittedList = split($listOfSections,chr(10))
for each $section in $splittedList
$section ?
next

_________________________
!

download KiXnet