Hour 20. Working with the Registry and Text Files

What You’ll Learn in This Hour

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

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

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

Text files have been around since the early days of computing, and even today they are useful for 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 that most users were moving to databases. After many emails from readers, I got the point: Text files are still ...

Get Sams Teach Yourself Visual Basic 2012 in 24 Hours, Complete Starter Kit now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.