You must use a while loop to process the first input file nameslist1txt and write to the output file

No products were found matching your selection.