I'm trying to search a text file for a matching text line and having serious problems. Yes it's embarressing because i thought this was a pretty much straight-forward task. I've read the mIRC helpfile and the commands I am using to try and acheive this from there give me errors.
//echo $read(info.txt, s, mirc)
Scans the file info.txt for a line beginning with the word mirc and returns the text following the match value.
//echo $read(help.txt, w, *help*)
Scans the file help.txt for a line matching the wildcard text *help*. The r switch implies a regex match.
Both these commands give me this output: * /echo: insufficient parameters
Is there any other way to search a file for matching text and output that text or line number please?
Help will be greatly appreciated... I am so dumb L

L