Lets say I wanna write a string "Hello World" into a MemoryStream and read this string to MessageBox.Show() without using Helper objects such as BinaryWriter and BinaryReader and StreamWriter and StreamReader etc.
Can you show me how to accomplish this with low-level functions of MemoryStream stream object.
P.s: I both use C# and VB.NET so, please feel free to use either of them.
Thanks.
You will have to choose a text encoding and use it to grab the data: