| 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.
|
|