Skip to content

Instantly share code, notes, and snippets.

@maxfridbe
Created November 1, 2012 22:55
Show Gist options
  • Save maxfridbe/3997279 to your computer and use it in GitHub Desktop.
Save maxfridbe/3997279 to your computer and use it in GitHub Desktop.
Reading File From Resource Stream
using (var stream = Assembly.GetExecutingAssembly() .GetManifestResourceStream("SalesForce.Tests.Required_AccountNames.txt"))
{
using (var reader = new StreamReader(stream))
{
embededFile = reader.ReadToEnd();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment