Put all input file code into frontio.cpp