Apart from writing plain text to a file, it is also possible to read its content. In this recipe, you will learn how to do it.
As an example, you will modify the project from the previous recipe to support the operation of reading content of a text file. This modification requires you to add a Load button. Once you click on it, the loaded content will be shown in the textbox.
To step through this recipe, you need the project from the previous recipe.
To prepare an example that reads notes from a text file, perform the following steps:
MainPage.xamlfile, as shown in the following code snippet:
<Page (...)> <Grid Padding="20"> <Grid.RowDefinitions> ...