TopMyGrade

Home·Daily Problem

Daily Problem·Sunday, 16 November 2025Back to today

File read loop

GCSE · Computer Science · AQA · CS2.6Input/output and file handling: reading from and writing to text files; reading user input and producing formatted output

Question

Write pseudocode that reads every line of "scores.txt" and outputs each line preceded by its line number (1-based).

5 marks · take your time before peeking.

Sign up to try the next 30 problems

Save your streak, mark answers against the spec, and build a daily revision habit. Free during public beta — no card, no auto-renew.

Generated by TopMyGrade AI · cross-check official sources before relying on the mark-scheme phrasing.