Hello,
A database is nothing more than a file with a certain pattern for data storage. In order to pull data from a database, you need to know HOW the data is internally stored within that file. A database could be a flat file, with one record per line, or it could be a binary file with internal search keys and other encoded data.
In order to help you with your code, you will need to tell us how the database is formatted, and you should also take a stab with the code to read it out and into variables. Chances are, you will need to put the data into a memory array or linked list, and you are going to need storage buckets to hold the data and the linked information together.
Good luck with it.
Christian
kc0arf
Posting Virtuoso
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57