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
Make sure your application works with Stream, and then you can use the MemoryStream concrete implementation to accomplish streaming without a file.
Stream
MemoryStream