Seneca

Files

Computer Science: OCR GCSE, topic 2.2.14

Files

Without files, we can only store data in the memory.

Files

Files

  • Files allow us to store data so that it persists even when our program is not running.
  • Files allow programs to 'carry on where they left off' when they are executed.
Text files

Text files

  • Text files consist of string data that can be read and processed by many applications.
Binary files

Binary files

  • Binary files consist of binary data that is read and processed by specific applications.

Test yourself on Files

  • What does a text file contain?

  • What is the main reason to use files?

  • Many applications can open a text file. Why does a binary file need a specific application?

Practise this topic for free