How are deleted files replaced by new ones?

187 views

Say if the internal storage of your phone were to fill up and you deleted something like a video or game, what is it actually doing to the file in order to take it off the storage and how are new files able to just replace it?

In: 3

8 Answers

Anonymous 0 Comments

Imagine a whiteboard in a classroom. A section with a box drawn around it that’s labeled “Do not erase” is a file that’s saved on disk. Anything outside of that is fair game to be erased and re-drawn.

When you delete a file on a hard drive, all you’re doing is erasing the box and “Do not erase” label. The contents of the box remain on the board until someone comes along and writes over them with something new.

When you want to write something new on the whiteboard, you just need to find an area that’s big enough, draw your box and “Do not erase” label, and then the space is yours to do what you please with it.

You are viewing 1 out of 8 answers, click here to view all answers.