I have removed all the handles, open, close commands and the script still works. So thank you for that. It makes it a lot easier to read the code without all those open/close handles.

I have tried the Left option and I prefer that to the way that I or Glenn did it as it removes an unnecessary if,endif statement. I have just made a note to use the Left option when using readprofilestrings to get round that bug.


Edited by Robdutoit (2022-04-28 04:50 PM)