Opening an Existing File

The remainder of this chapter uses another program, ANNUITY1.C, which you can now open in PWB. This program is a slightly different version of the program you just entered. It has several errors you will correct as you follow the tutorial.

·To open ANNUITY1.C:

1.From the File menu, choose Open (press ALT+F, O).

PWB displays the Open File dialog box.

PWB uses *.* as the default filename. This causes PWB to display all files in the current directory in the File List box.

2.If you are not in the directory where the sample programs are located, press the TAB key twice to move to the Drives/Dirs box. The example files are in \C700\SOURCE\SAMPLES\PWBTUTOR if you accepted the default direc-tory suggested by SETUP.

You'll notice that the cursor is a blinking underline. That means that although you have activated the list box, you haven't yet selected an item.

3.Use the arrow keys to move to the drive or directory where the files are located.

As you press the arrow keys, you'll notice that the cursor changes to a bar that highlights the whole selection. This is called the “selection cursor.” The text of the selected item also appears in the File Name box.

4.When you have highlighted the drive or directory you want, press ENTER to move there.

5.Use the TAB key to move to the File List box.

6.Use the arrow keys to move to ANNUITY1.C.

7.When you have highlighted ANNUITY1.C, press ENTER or click OK to accept your selection and open the file.

PWB opens ANNUITY1.C for editing.