add init_cons_stdin() and print_ans_to_file() functions

  - init_cons_stdin   : read an input file from argv[1]
  - print_ans_to_file : save to argv[2]