Improved method of scanning test file

I see my line number handling on scanlines() is broken...