Well i tried the code and it worked for me, you are calling it correctly, the second parameter is either 'clear' to indicate you want to clear or it's the optional parameter passed to $read, like 't' or 'n'. Do you get any error ? Do you have empty lines in the file ? I can't try it at the moment..

Last edited by Wims; 10/05/15 11:25 AM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel