[Solved] Display a text file onto a text block which is already within the app [closed]
[ad_1] This code loaded file from your project directory and show it in TextBlock with a name textBlock var rs = Application.GetResourceStream(new Uri(“file.txt”, UriKind.Relative)); StreamReader sr = new StreamReader(rs.Stream); textBlock.Text = sr.ReadToEnd(); Where file.txt saved like Content in your project 1 [ad_2] solved Display a text file onto a text block which is already within … Read more