Last active
December 20, 2015 18:09
-
-
Save Neferetheka/6173600 to your computer and use it in GitHub Desktop.
Read a file in assets on Windows Phone
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
private string GetResourceContent(string path) | |
{ | |
var resource = App.GetResourceStream(new Uri(path, UriKind.Relative)); | |
StreamReader reader = new StreamReader(resource.Stream, Encoding.UTF8); | |
return reader.ReadToEnd(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment