Probably not the best way of doing it but at the minute its the best I can think of.

Code:
On *:Text:*:#: {
  var %x = $$1-, %i = 1
  while (%i <= $numtok(%x,32)) {
    if ($read(filename.ext,nw,$gettok(%x,%i,32))) msg # $ifmatch was said.
    inc %i
  }
}


Change the filename.ext to the txt file you will be using.

Hopefully that works.