console reading with example of input file