File generation utility.