Edit infile and outfile