To review, go back into Default.aspx.cs. Because you are working with input/output resources, you have to make sure that you have I/O (using System.IO;); also, because you are dealing with low-level disk writing and reading, make sure that you enclose StreamWriter and StreamReader within using, so that you can get them, use them, and dispose off them properly. Lastly, because it's common to generate an exception, for example when the path cannot be found or similar, also, use try and catch with a message shown to the user to make the application look professional. Remember, this will run because we're running the page from our local computer.
The complete version of the Default.aspx.cs file for this chapter, including comments, is shown in the following code block:
//using is a directive
//System is a name space
//name space is a collection of features that...