I understand the difficulty of trying to solve these things over a forum, and all of your help is greatly appreciated. It still however gives me a /msg insufficient parameters error if i run it with a new text file just containing ABCDE on different lines. I think ill just tinker around with the code and try to solve it myself (maybe in the not most efficient way) but it will be more rewarding and will help me learn the mIRC language better. Again thanks for all your help.