The following interface is the main interface for demonstrating the use of an index for the book data file.
This interface includes the following major operations:
Downloads a book data file data.txt and its index index.txt.
Adds books to the book data file.
Updates its index when a record is added to the data file.
Selects a record by giving a specific key, an ISBN.
Shows the contents of a data file and its index.
Before going for the details, note the following two comments:
Our implementation is gradually away from the program examples of the textbook, which are getting too complicated to comprehend.
For programming exercises and exam problems, you may have your own implementation as long as
It is able to get the jobs done.
It is working on the Unix servers such as aero.und.edu and shell.aero.und.edu of the Aerospace School.