Web Page Development II 

Home WPD IWPD IIPage Number 3WPD IIIWPD IVWPD V
Page 1Page 2Page 3Page 4Page 5Page 6Page 7Page 8Page 9Page 10
Random Access File With A Header
You may call it a Personal Database. You set its record length and field data with a very simple code. The data is written into the file's header and from this point up, you need not to supply any data to read from or write into the file other than the file's name.

Field types can either be string or numeric. One unified type code defines a field of either type. String fields can be of any length while numeric fields are always 5 bytes long.
Demonstration
In the next page, you will be able to to create, read from and write into a file which contains the following four fields:

NAME      : Upto 35 char's string field.
AGE          : An integer.
POSITION: Upto 25 char's string field.
SALARY   : A two decimal digits numeric field.

REMARK: Data starts at record number 1.
See next page to create and write data into a file of this type.
Also, see next page to read back the data stored into the file.