Generates a single text file containing a list of filenames