save input file