Use the EnumINI UDF in your code, just pass it the name of the file to get an array of sections, or file+section to get an array of value names.

You'll see by examining the UDF code that the data returned is not delimited with a carriage-return. ;\)

In fact, your first modification should be to add
UBound($Sections) + 1 ' records were returned by Split!' ?
after the split command, just for debugging and enlightenment.

Aside from not really having an array to work with, your logic looks OK (but) if you know the section name, why enumerate the INI entire file? You can enumerate that section itself by specifying the file and section name values. This part of your logic would make sense only if you were searching for section names that contained a string value.

Also, you can improve your logic by negating it:
 Code:
If NOT $PCName = $PC ; or - If $PCName <> $PC
 do stuff
EndIf

This eliminates the dreaded "Empty If Syndrome" ;\)

Glenn
_________________________
Actually I am a Rocket Scientist! \:D