Lines 19 and 27 in the source: https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
You're right, the hidden scanFile()...makes no sense.
It's stripping all the new lines from the input.
Why? What is going on?
Not the best method to use, probably better to use the Files.readString method.