Redirect writes to a file to a stream C#

前端 未结 3 1946
慢半拍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:50

    I don't know how to do this in the way you say but you could use a FileWatcher to hook file. If its written to you'll be notified and you can read it.

提交回复
热议问题