Chapter 20. Working with Text Files and the Registry

<feature><title></title>

What You’ll Learn in This Hour:

<objective>

Using My.Computer.Registry to create and delete Registry keys and values

</objective>
<objective>

Using a StreamWriter object to open, read, and edit text files

</objective>
<objective>

Modifying your Picture Viewer program to use a text file and the Registry

</objective>
</feature>

Text files have been around since the early days of computing, and even today they are a useful method of storing data. For robust applications, a database is the way to go, but for storing simple sets of data, it doesn’t get much easier than using a text file. In the first edition of this book, I neglected to cover working with text files, thinking ...

Get Sams Teach Yourself Visual Basic 2008 in 24 Hours: Complete Starter Kit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.