generates input and output files