How to write data at a particular position in c#?

后端 未结 4 702

I am making an application in c#. In that application I have one byte array and I want to write that byte array data to particular position.

Here i used the followin

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-06 06:41

    Maybe a bit hacky, but you can access the BaseStream property of the StreamWriter and use Seek(long offset, SeekOrigin origin) on it. (But be warned, as not every stream can use Seek.)

提交回复
热议问题