What are the differentiate between sequential and random access file?
Answers
Answered by
0
The terms random access and sequential access are often used to describe data files. A random-access data file enables you to read or writeinformation anywhere in the file. 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.
Random access is sometimes called direct access.
Similar questions