Output files passed as linked list