added function to record name of files generated in a file.