View a Data File Formatted

In this tutorial, the Data File Editor is already open with the staff.dat data file loaded. Here, we load the staff.str record layout file to apply it to the staff.dat data file.

Note: When the Data File Editor loads a data file, it looks in the current directory for a record layout file with the same prefix, and if found, automatically loads that record layout file and applies it to the data file. To apply a record layout file to a data file that is already open or whose name does not match that of the record layout file, you must load it explicitly.
  1. On the Data File Editor window that you left open earlier, click File > Data File Editor > Load Record Layouts.
  2. Select staff.str; then click Open.

    A new pane appears on the right where the Data File Editor has applied the formatting information from the record layout file. This pane shows a formatted view of a single record. The record layout name is at the top of the pane. At the top right are two navigation controls: the small up-arrow takes you to the previous record and the small down-arrow takes you to the next record.

    The pane on the left shows only the first few columns of the data file, but you can use the slider at the bottom to see the additional columns. As before, the data is shown as unformatted, one per line.

    Figure 1. The Data File Editor Window with a Record Layout Loaded

  3. In the right pane, you can type over the existing information in the Value column to change it. In addition, you can also use the editing features explained in the View a Data File Unformatted topic of this tutorial. These are the same for both formatted and unformatted data.
  4. Click a record in the left pane to view its formatted data in the right pane.
  5. Click each record in the left pane sequentially and notice how the formatted view in the right pane changes to match the selected record type as you move through the file.