Created
November 1, 2012 22:55
-
-
Save maxfridbe/3997279 to your computer and use it in GitHub Desktop.
Reading File From Resource Stream
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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