Record-oriented Filesystem - Advantages and Costs

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:

    In 1845 he built himself a small framed house on the shores of Walden Pond, and lived there two years alone, a life of labor and study. This action was quite native and fit for him. No one who knew him would tax him with affectation. He was more unlike his neighbors in his thought than in his action. As soon as he had exhausted himself that advantages of his solitude, he abandoned it.
    Ralph Waldo Emerson (1803–1882)

    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 what’s come to pass,
    They won’t lay out their money on the dead—
    It costs three francs for every mass that’s said.
    George Gordon Noel Byron (1788–1824)