Introduction
Imagine you have many different types of documents, pictures, and music files on your computer. Each type needs a special way to be saved and opened so your computer knows how to handle it correctly.
Think of file formats as different types of containers, like boxes, envelopes, or jars, each made for holding specific things. The file extension is like a label on the container telling you what's inside and how to open it.
┌───────────────┐ ┌───────────────┐
│ File Name │─────▶│ File Extension│
│ example.jpg │ │ .jpg │
└───────────────┘ └───────────────┘
│ │
▼ ▼
┌───────────────────────────────┐
│ File Format │
│ JPEG image format stores │
│ compressed image data │
└───────────────────────────────┘photo.jpeg on a computer?report.docx but gets an error. What is the most likely cause?notes.txt and want to share it with someone who only has a PDF reader. What should you do?Pass the test and this pattern moves unknown