Switch from stdin/stdout to input/output files