Files and folders are used to store and organize information on computers, smartphones, tablets and other digital devices.
A file stores information, while a folder organizes files and other folders.
For example, a student may create a folder called Computer Course and store notes, assignments, images and videos inside it.
Understanding Files and Folders with a Real-Life Example
Think about an office filing cabinet:
- The cabinet contains different sections.
- Each section contains folders.
- Every folder contains documents.
- Every document contains information.
A computer uses a similar system.
flowchart LR
A["Filing cabinet"] --> B["Storage device"]
C["Paper folder"] --> D["Computer folder"]
E["Paper document"] --> F["Computer file"]
G["Written information"] --> H["Digital data"]
A paper document and a digital file perform similar jobs. Both store information that can be used later.
What Is a File?
A file is a named collection of related digital information stored on a device.
A file can contain:
- Written text
- Photographs
- Music
- Videos
- Computer instructions
- Tables and calculations
- Presentations
- Website code
Examples include:
Homework.docxFamily-Photo.jpgMonthly-Budget.xlsxFavourite-Song.mp3Computer-Lecture.mp4
Each one is a separate file because it contains its own information.
How Is Information Stored Inside a File?
Computers store all information using binary digits called bits. These bits contain only two possible values:
01
Different arrangements of zeros and ones can represent text, colours, sound, video or computer instructions.
flowchart LR
A["Digital data: 0 and 1"] --> B["Stored as a file"]
B --> C["Application understands data"]
C --> D["Text, image, audio or video"]
For example, an image file contains digital data describing:
- Image width and height
- Colours of pixels
- Image quality
- Other image information
When an image application reads this data, it displays the photograph on the screen.
Important Information About a File
A file contains more than its visible content. The operating system also keeps information about it.
| File information | Meaning | Example |
|---|---|---|
| Name | Identifies the file | Computer Notes |
| Type | Shows the file format | PDF document |
| Extension | Helps identify the format | .pdf |
| Size | Amount of storage used | 2 MB |
| Location | Where the file is stored | Documents folder |
| Created date | When the file was created | 23 August 2026 |
| Modified date | When it was last changed | 24 August 2026 |
| Permissions | Who can open or change it | Owner only |
These details are known as file properties or file metadata.
How Does a File Open?
When a user opens a file, several things happen.
flowchart LR
A["User opens file"] --> B["Operating system locates it"]
B --> C["Suitable application starts"]
C --> D["Application reads data"]
D --> E["Content appears"]
Practical Example
When Assignment.docx is opened:
- The operating system finds the file.
- It recognizes that the file is a Word document.
- A compatible word-processing application starts.
- The application reads the stored data.
- The assignment appears on the screen.
If no compatible application is installed, the computer may ask the user to select or install one.
Where Are Files Stored?
Files may be stored on:
- HDD
- SSD
- USB drive
- Memory card
- External hard drive
- Smartphone storage
- Cloud storage
- Network server
When a file is saved, the operating system records its data and location on the selected storage system.
Local File Example
Homework.docx stored on a laptop’s SSD is a local file.
Cloud File Example
The same homework stored in Google Drive, OneDrive or another cloud service is a cloud file. It may be synchronized with several devices.
What Is a Folder?
A folder is a digital container used to group and organize related files and other folders.
A folder can contain:
- One file
- Many files
- Other folders
- A combination of files and folders
- Nothing at all
An empty folder is still a folder.
Example
A folder called College Work may contain:
Assignment.docxPresentation.pptxResearch.pdf- A subfolder called
Images
The folder helps keep these items together.
Does a Folder Store Data?
A folder mainly organizes the names and locations of files and subfolders. It does not contain information in the same way as a photograph or document file.
However, the folder and everything inside it occupy storage space.
For example:
Photo1.jpguses 3 MB.Photo2.jpguses 4 MB.Photo3.jpguses 5 MB.
The Holiday Photos folder containing them will hold approximately 12 MB of file data, excluding small file-system overhead.
Parent Folders and Subfolders
A folder can exist inside another folder.
- The outer folder is called the parent folder.
- The folder inside it is called a subfolder or child folder.
flowchart TD
A["College Work"]
A --> B["Computer Science"]
A --> C["English"]
B --> D["Notes"]
B --> E["Assignments"]
D --> F["Chapter 1.pdf"]
E --> G["Homework.docx"]
In this structure:
College Workis the main parent folder.Computer Scienceis a subfolder ofCollege Work.Notesis a subfolder ofComputer Science.Chapter 1.pdfis a file insideNotes.
A folder can be both a child and a parent. For example, Computer Science is a child of College Work, but it is also the parent of Notes.
What Is a Root Folder?
The root folder is the highest folder in a drive or storage structure. All other folders and files are arranged below it.
flowchart TD
A["Drive or root"]
A --> B["Documents"]
A --> C["Pictures"]
A --> D["Downloads"]
B --> E["Assignments"]
C --> F["Family Photos"]
The complete arrangement is called a directory structure or folder hierarchy.
File and Folder Structure Example
Suppose a student is creating a computer course.
A well-organized structure may look like this:
flowchart TD
A["Computer Course"]
A --> B["Notes"]
A --> C["Assignments"]
A --> D["Images"]
B --> E["Files and Folders.pdf"]
C --> F["Assignment 1.docx"]
D --> G["Folder Diagram.png"]
This structure makes it easy to understand:
- Where notes are stored
- Where assignments are stored
- Where images are stored
- Which files belong to the course
Difference Between a File and a Folder
| File | Folder |
|---|---|
| Stores actual digital information | Organizes digital items |
| Can contain text, images, audio or instructions | Can contain files and subfolders |
| Usually has a file extension | Normally has no extension |
| Opens using a suitable application | Opens using a file manager |
| Has its own file size | Its size depends mainly on its contents |
Example: Notes.pdf | Example: Course Notes |
Easy Way to Remember
File = Information
Folder = Organization
Can Two Files Have the Same Name?
Two files can have the same name when they are stored in different folders.
For example:
English\Notes.pdfComputer\Notes.pdf
These are separate files because their locations are different.
However, the same folder normally cannot contain two files with exactly the same name and extension. The operating system may ask the user to:
- Replace the existing file
- Rename the new file
- Cancel the action
File Icons and Folder Icons
Operating systems use icons to make files and folders easier to recognize.
A file’s icon may indicate:
- Document
- Photograph
- Video
- Audio
- Application
- Spreadsheet
A folder normally uses a folder-shaped icon.
The icon does not contain the information. It is only a visual symbol representing the item.
Files and Folders on Different Devices
The same concept is used on different systems.
| Device or system | File-management tool |
|---|---|
| Windows computer | File Explorer |
| macOS computer | Finder |
| Android device | Files or My Files |
| iPhone or iPad | Files app |
| Cloud storage | Web or mobile file manager |
Their appearance may differ, but files still store information and folders still organize it.
Why Are Folders Important?
Without folders, thousands of unrelated files might appear in one place.
Folders help users:
- Find information quickly
- Separate personal and work files
- Group related projects
- Keep photographs organized
- Manage school assignments
- Store website content
- Create backups
- Share related files together
Practical Example
If all website files are saved on the Desktop, finding a specific image may become difficult.
A better arrangement is:
Studies BlueprintPublished ArticlesDraft ArticlesPost ImagesWebsite Backups
File and Folder Safety
- Use clear and meaningful names.
- Keep related files in the same folder.
- Do not open unknown files.
- Avoid deleting system folders.
- Back up important folders.
- Check before permanently deleting anything.
- Protect private folders with appropriate account permissions.
- Do not keep the only copy of an important file on one device.
- Scan files downloaded from unknown sources.
Frequently Asked Questions
Is a Folder Also a File?
A folder is managed by the file system, but its purpose is different from a normal data file. A folder organizes items, while a regular file stores content.
Can a Folder Be Empty?
Yes. An empty folder contains no files or subfolders but can still be created and named.
Can a File Contain Another File?
A normal document or image file does not organize other files like a folder. However, archive files such as ZIP files can package several files together.
What Happens When a Folder Is Deleted?
The files and subfolders inside it are normally deleted or moved to the Recycle Bin with the folder. Always check its contents first.
Why Do Different Files Have Different Icons?
The operating system uses icons to show the file type or the application associated with it.
Can One File Be Stored in Two Folders?
The original file normally has one location. Copying it creates another separate copy. A shortcut can also point to the original file without duplicating its data.
Conclusion
Files and folders work together to manage digital information.
- A file stores information.
- A folder organizes files and other folders.
- A subfolder is a folder inside another folder.
- A parent folder contains a subfolder.
- The root folder is the highest level of a storage structure.
- A file manager helps users view and manage these items.
The easiest way to remember the concept is:
A file is like a document, and a folder is like the container used to organize documents.
