Well you could use $read(file,N) in a loop to send all lines, but a MUCH better way would be to
  • /.play -n $nick "file.txt" 2000
See /help /play