Try to use another way to deal with multiple input/output files