Hi and welcome!

You're welcome to look at another approach with a different layout for the 'ini' (or, reference-file) in this thread :
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Main=24889&Number=202966
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!