File Access (Cambridge (CIE) A Level Computer Science): Revision Note

Exam code: 9618

Robert Hampton

Written by: Robert Hampton

Reviewed by: James Woodhouse

Updated on

File access methods

What are file access methods?

  • Once a file is organised and stored, it must be accessed correctly in order to retrieve or update data

  • The method of access depends on the file organisation used

Sequential access

  • Sequential access means accessing records one after another, in order, starting from the beginning of the file

Key features

Used with

Reads records in sequence

Serial and Sequential files

Slower for searching large files

Must process earlier records first

Efficient when reading the whole file

Ideal for batch processing (e.g. payroll, reports)

  • Example: Reading every student's exam result in order of candidate number

Direct (random) access

  • Direct access allows a program to jump straight to the location of a specific record, without reading previous ones

Key features

Used with

Accesses records directly by position or key

Sequential (with indexing) and Random files

Fast access to individual records

Ideal for databases and real-time systems

Requires a calculation or index to find the correct location (e.g. hashing)

Useful when you need to look up a record quickly

  • Example: Accessing a bank account record by account number

You've read 0 of your 5 free revision notes this week

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Robert Hampton

Author: Robert Hampton

Expertise: Computer Science Content Creator

Rob has over 16 years' experience teaching Computer Science and ICT at KS3 & GCSE levels. Rob has demonstrated strong leadership as Head of Department since 2012 and previously supported teacher development as a Specialist Leader of Education, empowering departments to excel in Computer Science. Beyond his tech expertise, Robert embraces the virtual world as an avid gamer, conquering digital battlefields when he's not coding.

James Woodhouse

Reviewer: James Woodhouse

Expertise: Computer Science & English Subject Lead

James graduated from the University of Sunderland with a degree in ICT and Computing education. He has over 14 years of experience both teaching and leading in Computer Science, specialising in teaching GCSE and A-level. James has held various leadership roles, including Head of Computer Science and coordinator positions for Key Stage 3 and Key Stage 4. James has a keen interest in networking security and technologies aimed at preventing security breaches.