You don't write code for people but we will help you with your code if you are stuck. What problems are you having with splitting and merging files? What have you tried so far?
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
a bit of art, as a gift, that will fit in a stocking