Your loop is very inefficient, $read itself has some functions to compare a string against each line of a file, wildcard or regex are supported.


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