Lesson 4 of 4 · Open

Files and folders

How data in storage gets a name and a place.

A laptop often holds thousands of photos, letters, and bills. Still, you can find the 2026 electricity bill in seconds if it has been filed well. For that, everything you save needs a name and a place.

Whatever you save sits in storage as a file: a set of data that belongs together and has a name. A photo is a file, and so is a letter. The file name is how you and the computer find it again, for example power.pdf.

What the extension tells you

The part after the last dot in the name is called the file extension. In power.pdf it is pdf, and in vacation.rome.jpg it is jpg. The extension names the format of the file: how the data in it are encoded. From it, the computer knows which program to open the file with.

ExtensionWhat is inside
.jpga photo
.pdfa document for viewing and printing
.mp3music or other sound
.txtplain text with no formatting
.docxa formatted text document

Folders inside folders

A folder groups files that belong together. A folder can also contain other folders, the way a filing cabinet has drawers and each drawer has folders. This creates an order from the outside in: Documents, inside it Bills, inside that a folder for each year.

The path describes the way to a file. It names all the folders from the outside in, and the file name at the end, separated by slashes.

Example

The way to the electricity bill

Inside the folder Documents is the folder Bills, inside that the folder 2026, and inside that the file power.pdf. The path is Documents/Bills/2026/power.pdf.

New terms

file
a set of data with a name, kept in storage
file name
the name you find the file by, such as power.pdf
file extension
the part of the name after the last dot, such as pdf
format
how the data in a file are encoded
folder
groups files and other folders
path
the way to a file: all folders from the outside in, separated by slashes

A complete path starts even further out, for example at the folder of your user account. To keep things short, the examples here start at Documents. Windows separates the folders with a backslash: Documents\Bills\2026\power.pdf. The way is the same.

Quick check

What is the extension of the file report.final.docx?

Typical mistake

Trying to convert a file by renaming its extension. That turns vacation.jpg into vacation.pdf, but the file still holds a photo in JPG format. The extension now claims something that is not true, and a PDF program usually cannot open the file. Only a program that encodes the data anew can convert it, for example with “Export” or “Save as.”

Remember

A file is a set of data with a name, and its extension tells you the format. The path names all the folders from the outside in, down to the file.

Tasks

Three tasks complete the lesson. The order does not matter, the text above stays where it is.

Task 1 · Pairs

What is in the file? Match them.

Drag every card to its place, or tap it and then the place.

  • birthday.jpg
  • favorite-song.mp3
  • groceries.txt
  • lease.pdf
  • resume.pdf.docx

Task 2 · Fill in

Fill in the words.

Tap a word, it goes into the marked gap.

The file rent.pdf is in the folder Apartment, which is in the folder Documents. The is Documents/Apartment/rent.pdf. Here rent.pdf is the of the file, pdf is its , and Apartment is a .

Task 3 · Several right

What is true about files and folders?

Several answers are right. Pick all of them.

Go deeper

Three more tasks, optional. They do not count for completing the lesson.

Task 4 · Order · optional

The file beach.jpg is in the folder 2025, which is in the folder Vacation, which is in the folder Pictures. Order the path from the outside in.

Drag the rows into the right order.

  1. 1Pictures
  2. 22025
  3. 3Vacation
  4. 4beach.jpg

Task 5 · Choice · optional

A form only accepts PDF files. You have scan.jpg. What helps?

One answer is right.

Task 6 · Input · optional

How many folders does the path Photos/Family/2024/July/lake.jpg name?

Enter the result.

Folders =

Back to the chapter