Switch ReadLines to use scanner.