CS Academy
Log inSign up
Back to course

Files and folders

Remember the cabinet from the last lessons, the storage? Imagine you throw all your papers inside it with no order. Finding one paper would take forever. So computers organize everything with two simple ideas: files and folders.

A file is one piece of information with a name: a photo, a song, a document. The name usually ends with a dot and a few letters, like photo.jpg, song.mp3 or notes.txt. Those last letters are called the extension, and they tell the computer which program should open the file.

A folder is a box that holds files, and it can hold other folders too. So you can make a folder called School, and inside it a folder called Math, and inside that your homework files. Folders inside folders inside folders: it looks like a tree with branches.

Every file has an address, called a path. It works like your home address: first the country, then the city, then the street, then the door. A path starts from the biggest place and goes step by step to the file. Here is an example from a Windows computer:

text

C:\Users\Sara\Documents\notes.txt

Read it from left to right: the C drive, then the Users folder, then the folder of a person named Sara, then her Documents folder, and finally the file notes.txt. Because the address is different, you can have two files with the same name in two different folders, and the computer will never mix them up.

🤖 Ask the AI tutor

Log in to ask a question

Log in to track your progress