Explore BrainMass

Explore BrainMass

    Difference between Sequential, Binary and Random File Access

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    What is the difference between sequential file access, random file access, and binary file access? For each of the three types, give an example of an application where the use of one type is better than the other two types.

    © BrainMass Inc. brainmass.com December 24, 2021, 5:09 pm ad1c9bdddf

    Solution Preview

    Sequential file access refers to reading or writing data records in sequential order, that is, one record after the other. However, a random-access data file enables you to read or write information anywhere in the file. But in a sequential-access file, you can only read and write information sequentially, starting from the beginning of the file. Both types of files have advantages and disadvantages. If you are always accessing information in the same order, a sequential-access file is faster. If you tend to access information randomly, random access is better.
    Binary files are very ...

    Solution Summary

    The expert examines the differences between sequential binary and random file access.