How can I insert or remove bytes from the middle of a large file in .NET

前端 未结 4 1895
自闭症患者
自闭症患者 2021-01-12 08:12

Is it possible to efficiently insert or remove bytes from the middle of a large file, and if so how? Or am I stuck rewriting the entire file after the point

4条回答
  •  温柔的废话
    2021-01-12 08:20

    You have to copy the file. At best, you may be able to get away using Sparse Files, but only if the 'A lot of Bytes' is Zeros.

提交回复
热议问题