C++ FileIO Copy -VS- System("cp file1.x file2.x)

前端 未结 5 2003
自闭症患者
自闭症患者 2021-01-31 22:15

Would it be quicker/efficient to write a file copy routine or should I just execute a System call to cp?

(The file system could differ [nfs, local, reiser, etc], however

5条回答
  •  别跟我提以往
    2021-01-31 23:02

    I would put my money on that the OS knows the most efficient way to copy file A to file B. The same applies for any api functions.

提交回复
热议问题