Consider the data shown in Table 8.1, consisting of four measurements on eight quantities. Suppose that we wish to read the second column into a data-carrier named X; the third and fourth columns into data-carriers called A1 and A2; and the seventh column into a data-carrier named Y. This could be achieved using the fragment of code shown in Figure 8.1, which we suppose to be part of a subroutine on an external file. (It is advisable not to input large quantities of data interactively: use a data file instead.)
Figure 8.1: Reading data into [B/D]