Seneca

Files

Computer Science: KS3, topic 2.3.8

Files

Without files we can only store data in the memory.

Files

Files

  • Files allow us to store data.
  • So the data persists even when our program is not running.
  • Persisting data allows 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?

  • Select the true statement about files in each pair.

  • A note app saves notes to a file. What allowed the notes to still be there after the app was closed and reopened?

Practise this topic for free