Redirect writes to a file to a stream C#

前端 未结 3 1983
慢半拍i
慢半拍i 2021-01-07 06:02

I wanted to ask if it is possible to redirect writes to a specific file, to a memory stream in my application so I can immediately read it. If it is possible please explain

3条回答
  •  忘掉有多难
    2021-01-07 06:46

    Make sure your application works with Stream, and then you can use the MemoryStream concrete implementation to accomplish streaming without a file.

提交回复
热议问题