Files are just a huge list of numbers, stored as binary.
Interpret data with each coordinating ASCII.
First 44 bytes of WAV file:
Before we can correctly read the data, we need to know some information, like the bit rate and whether it's a single track or stereo. Data about data is called metadata.
Metadata is stored at the front of the file, ahead of any actual data, in what's known as header.
Digital microphone samples the sound pressure thousands of times.
Each sample can be represented as a number. Larger numbers mean higher sound pressure, what's called amplitude.
When it's time to play this file, an audio program needs to actuate the computer's speakers such that the original waveform is emitted.
On a computer, pictures are made up of little tiny square elements called pixels.
Each pixel is a combination of three colors: red, green and blue. These are called additive primary colors, and they can be mixed together to create any other color on our electronic displays.
Extra space is called slack space.
Most often, directory file is kept right at the front of storage, so we always know where to access it (location zero). It is like a table of contents in a book.
The directory file and the maintenance of it is an example of a very basic File System, the part of an operating system that manages and keep track of stored files.
Deleting data - Just remove the entry from the directory file, and at some point, the block will be overwritten with new data.
Fragmentation - Files getting broken up across storage.
Degragmentation - The computer copies around data so that files have blocks located together in storage and in the right order.
Hierarchical File Systems - many folders and subfolders.
Metadata for knowing if it is a directory - isDirectory? true or false
Top-most directory file is called root directory. All other files and folders lie beneath this directory along various file paths.