June 2006
Intermediate to advanced
1344 pages
42h 52m
English
The preceding section demonstrated how to create a file for use in sequential-access applications. In this section, we discuss how to read (or retrieve) data sequentially from a file.
Class FrmReadSequentialAccessFile (Fig. 18.11) reads records from the file created in Fig. 18.9, then displays the contents of each record. Much of the code in this example is similar to that in Fig. 18.9, so we discuss only the unique aspects of the application.
1 ' Fig. 18.11: FrmReadSequentialAccessFile.vb 2 ' Reading a sequential-access file. 3 Imports System.IO 4 Imports BankLibrary ' imports classes from Figs. 18.7 and 18.8 5 6 Public Class FrmReadSequentialAccessFile ... |
Read now
Unlock full access