Can you provide more details as the below.
i. You have 10 files in a folder - What type of files are they? - .xlsx, .txt, .csv...etc
ii. Out of these 10 files, you want to merge the contents of those 2 files whose first six characters in their names are same
eg; if there are say 5 files like:
Then you want to combine/merge the contents of the ABCDEF123 and ABCDEF456 files because their names contain the same first six characters, then load them into a queue. Is this your correct requirement?