open input/output files