Update file_parser.cc

put code into print_file() member function