Copies parts of files to other files with markers to determine position of insertion