Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StreamResourceInfo resourceInfo = Application.GetResourceStream(new Uri(string.Format("yourFilePath/{0}.txt",userTypedNumber), UriKind.Relative));
- using (StreamReader reader = new StreamReader(resourceInfo.Stream))
- {
- yourContentControl.Text = reader.ReadToEnd();
- reader.Close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement