ircmirc

If Line Number Exists


Im trying to get a code that will do something if a certain line number is in a text file for example "Test.txt" Ex.

if line "x" exists in test.txt msg $chan working

Solution

  • thanks @denny for being the one to help me out.

    if ($read(test.txt, n, x)) { 
      msg $chan working
    }