Not sure if you are aware of the inbuilt INI support... but here's an example...
 Code:
$Values=split(Readprofilestring($ini,"[Xerox 5955]",""),chr(10))
? "Items:  " + (ubound($values)+1)
for each $Value in $Values
  if $value
    ? readprofilestring($ini,"[Xerox 5955]",$value)
  endif
next


You can get all the sections similarly by readprofilestring($ini,"","")

Also be sure to look for Glenn's INI functions on his website as they turn the INIs into arrays and work great.


Edited by Allen (2015-12-08 08:41 PM)