Code:
alias /pay_high {
  set %NumberOfLines $lines("C:\Program Files\mIRC_ComicQuiz\HiLo_HighBet.txt")
  var %j = 1
  while (%j <= %NumberOfLines) {
    msg #BIGZIPZ Winner: $read("C:\Program Files\mIRC_ComicQuiz\HiLo_HighBet.txt"),%j)
    inc %j
  }
}


The preceding code is from a simple Higher or Lower game I made, and is part of the code which triggers when the outcome is Higher. As I understand it $read(filename,1) would read line 1, etc etc. Yet with my code it reads a random line even though I specify %j which is a number.

$read("C:\Program Files\mIRC_ComicQuiz\HiLo_HighBet.txt"),%j)

Am I using the syntax incorrectly? Thanks alot