I gather you wanna search a txt file for a line that is equal to $1-?

(forgive me, I haven't gotten to studying the new file operations yet).

Code:
on *:TEXT:*:[color:blue]#channelname[/color]: {
  var %x = $read([color:blue]filename[/color],w,$replace($1-,$chr(32),$chr(42)))
  if ($readn) echo -a [color:purple]The line was found in the file on line $readn ![/color]
  else echo -a [color:purple]The line was not found[/color]
}