they are better ways to read a text file but it would depends on what you need, if you know you want to process all the line or most of them, you can use /filter, if you want some specific line(s) but only a few, File handling can be used.
Seems like you're processing all the lines, so you should check /filter: https://en.wikichip.org/wiki/mirc/commands/filter


#mircscripting @ irc.swiftirc.net == the best mIRC help channel