Reading long files line by line

Hi, what’s the most efficient way to read and process a long text file line-by-line within an Ion script?

Currently the examples show what’s basically ‘cat file’ -> ‘process lines’, which is great except that processing halts while the cat command executes in full.

So, is there a better way using pipes, redirection or simply reading a file directly line by line?

Thanks in advance.