Check that file name is specified.
Create input file if it does not exist.
Reformat output file name