Richard,

I understand now, your INI file only had the entries in that were required. I have added in a "nul" value so it should now stop when it reaches the first blank entry and ends the loop.
Unfortunately as all the INI files are based on a Template some may have Blank entries in them, so I cannot go through them all and edit them.

Thanx to all for your assistance, In closing the only way around this I found was to use an ARRAY