Recently I found myself in the situation of coping files of (potentially) any size, so I started in a simple way.

The simple way means just reading the bytes of the file and writing them into a new one, so starting with the file to copy we could simply do something like this: