O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing a text file

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:

Writing a text file

Getting ready

To step through this recipe, you need only the automatically generated project.

How to do it...

To prepare an example that saves notes in a textual file, perform the following steps:

  1. Prepare the design of the page by modifying the content of the

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required