given a directory filled with files the following program attempts to generate files of a given template with a unique filename