|
Each field in a record can be of either fixed or variable length. When you create a file you must decide whether each field will be of fixed or variable length :
Fixed Length Field | A fixed length field contains a set number of characters. |
Variable Length Field | A variable length field can contain any number of characters. If a field is of fixed length, you must decide how many characters it can contain. |
If a field is of variable length then an End-Of-Field marker must be put after the data stored in the field to show where it ends.
If a record contains some fields which have variable lengths then the record length will be variable. If a record contains only fixed length fields the record length will be fixed.
The main advantages of variable over fixed length fields or records are:
The main advantages of fixed over variable length fields or records are :
GCSE ICT Companion 04 - (C) P Meakin 2004