What happens if you skip the string part and go straight to an array?

$Array = Split(ReadProfileString('file.ini','',''),CHR(10))

Then just ReDim to lose the last element.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.