Printing urls and filenames to text file