process function for generator copy allows manipulation of file contents...

..., source, destination and encoding. the argument indexes must be respected in the return statement of the process function