I know there is boost:filesystem::copy_file
which allows copying the whole file.
But I need to copy part of file from the beginning to some specific offset to other file. My question is if there is anything in the boost to do that?
If not then it seems I need to use fopen/fread/fwrite
and implement my own custom copying loop.
Update: I don't ask for most effective way to copy a file. I don't mention Linux. I wonder how this question can be seen as a duplicate of the "most efficient way to copy file on Linux" question. It looks like all those people marking it as duplicate didn't read my question at all.