Advantages and Costs
A record oriented file has several advantages. After a program writes a collection of data as a record the program that reads that record has the understanding of that data as a collection. Although it is permitted to read only the beginning of a record, the next sequential read returns the next collection of data (record) that the writer intended to be grouped together. Another advantage is that the record has a length and there is no restriction on the bit patterns composing the data record, i.e. there is no delimiter character.
There is a cost associated with record oriented. The length definition takes up space. On a magnetic tape that definition takes the form of an inter-record gap. On a disk a meta data area must be allocated. This is minimal in a file where all the records are the same length. On a file composed of varying length records a maximum record length is defined to determine the size of the length metadata associated with each record.
Read more about this topic: Record-oriented Filesystem
Famous quotes containing the words advantages and/or costs:
“There is no one thoroughly despicable. We cannot descend much lower than an idiot; and an idiot has some advantages over a wise man.”
—William Hazlitt (17781830)
“When over Catholics the ocean rolls,
They must wait several weeks before a mass
Takes off one peck of purgatorial coals,
Because, till people know whats come to pass,
They wont lay out their money on the dead
It costs three francs for every mass thats said.”
—George Gordon Noel Byron (17881824)