
This article will show you what is a MemoryStream and how to write binary information to this stream.The .NET Framework provides a lot of useful classes to work with input and output. Working with File IO is very common in most programming scenarios. Sometimes it is needed that you do your stream operations in the memory available to the running process, like if you are working with network streams and binary data is transferred from one side to the other. In such cases the MemoryStream class can be useful.The MemoryStream is a stream that resides in the process’s memory. You can write information to and read information from this stream tha..
|