When a file is created, you can write content into it. In this recipe, you will learn how to use plain text as the content of an existing file.
As an example, you will create a simple application for saving notes. The page will contain a text block as the header, a textbox for entering content, and the Save button. A design of the page is presented in the following image:
To step through this recipe, you need only the automatically generated project.
To prepare an example that saves notes in a textual file, perform the following steps: