create result file
use an input file name for an output file