copy a part of files in an other file