Introduce InputReader to read data from the file and do low-level parsing.