Head First C# Code: Chapter 9, Reading and Writing Files

Chapter 9 Opening Image

Sometimes it pays to be a little persistent.

Head First C#

So far, all of your programs have been pretty short-lived. They fire up, run for a while, and shut down. But that's not always enough, especially when you're dealing with important information. You need to be able to save your work. In this chapter, we'll look at how to write data to a file, and then how to read that information back in from a file. You'll learn about the .NET stream classes, and also take a look at the mysteries of hexadecimal and binary.

Download the Code

View the Code

Excuse Manager: Excuse Manager with Serialization: Simple Text Editor: Joe and Bob: