output-file name by merging the input-file name and the supplied output-file name. Minor modifications by RLT.