• Best of luck to the class of 2024 for their HSC exams. You got this!
    Let us know your thoughts on the HSC exams here
  • YOU can help the next generation of students in the community!
    Share your trial papers and notes on our Notes & Resources page
MedVision ad

Sequential and Random files (1 Viewer)

Premus

Member
Joined
May 21, 2004
Messages
216
Compare and contrast sequential and random access files

Thanks :)
 

solo36

New Member
Joined
Aug 4, 2004
Messages
1
PremusDog said:
Compare and contrast sequential and random access files

Thanks :)
sequential: program needs to read entire file up until it hits the target element, elements can be different lengths, elements can be different data types
random: program can jump dirrectly to required element, elements MUST be same length, elements must be same data type.

this was in the indep paper..right?
 

Freedom_Dragon

The 36th Dragon
Joined
Oct 11, 2003
Messages
154
Location
Behind a door that will never open.
Gender
Undisclosed
HSC
N/A
Sequencial Access: Occurs when data files are accessed in a sequencial/Linear manner, hence the name "Sequencial Access". Access time to data files is much slower than Direct access & is impractical when immediate access is required. Sentinel Values are used to indicate breaks in the data such as EOF(End Of File).
Eg: Magnetic Tape/Audio cassette

Direct/Random Access: Occurs when data files are accessed without having to read any of the preceding data to a particular data file, files can be accessed in any order. Data is accessed directly using an index. Access time to data files is much faster. Eg: HDD.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top