;Example 1
//while ($read(names.txt, nw, *Fred*, $calc($readn + 1))) echo -a $v1
;Example 2
var %dude = Fred
//while ($read(names.txt, nw, *%dude*, $calc($readn + 1))) echo -a $v1
Example 1 works without a problem. I'll pull the string that starts with Fred. But example 2 doesn't do anything. Is it possible to do a search with a variable?
I've been googling for ages and can't figure it out. I'm not exactly the best at this kind of stuff.
Note also that using $read the way you are, to get all the lines matching, is quite slow, if you to get all the lines matching in a much faster way, check out /filter
#mircscripting @ irc.swiftirc.net == the best mIRC help channel