here's what i'm working with:

multiple files named, "sample.txt", each containing distinct records found in multiple locations; folder_A, folder_B, folder_C, etc ...

example:
documents/folder_A/sample.txt
documents/folder_B/sample.txt
documents/folder_C/sample.txt

content of files:
folder_A/sample.txt - A_record_0001
A_record_0002
A_record_0003
folder_B/sample.txt - B_record_0001
B_record_0002
etc ...

I was wondering if it is possible to combine files from multiple sources and append to a single file.

what would that look like?