Oh by the way, the following will get rid of the last empty array element when reading in sections (or keys for that matter)

 Code:
$GrpArray = split(left(ReadProfileString($pFile, "", ""),-1), chr(10))
_________________________