Save and load MemoryStream to/from a file
I am serializing an structure into a MemoryStream and I want to save and load the serialized structure. So, How to Save a MemoryStream into a file and also load it back from file? 9 Answers 9
I am serializing an structure into a MemoryStream and I want to save and load the serialized structure. So, How to Save a MemoryStream into a file and also load it back from file? 9 Answers 9
If I am given a MemoryStream that I know has been populated with a String, how do I get a String back out? 12 s 12 You can also use Encoding.ASCII.GetString(ms.ToArray()); I don’t think this is less efficient, but I couldn’t swear to it. It also lets you choose a different encoding, whereas using a … Read more