A file is a common storage unit in a computer in which data, programs, software, etc. are stored. Computers have different files that have different functions. The data stored in the file can be “updated, deleted, edited” at any time.
The folder is where the files are stored. We can save more than one file and folder in one folder. For example I have a box containing 10 apples. In this example the box is a folder and the apples are the files saved in it. Another folder inside any folder is called a sub-folder.