Create a list of files and perform an action on each file in the list then write the results to a file.