Skip to content

Instantly share code, notes, and snippets.

@csharpforevermore
Created September 4, 2013 16:47
Show Gist options
  • Save csharpforevermore/6439637 to your computer and use it in GitHub Desktop.
Save csharpforevermore/6439637 to your computer and use it in GitHub Desktop.
Output a string to a memory stream
MemoryStream mStream =
new MemoryStream(ASCIIEncoding.Default.GetBytes("Your string here"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment