Difference between file and directory
Answers
Answered by
29
All the data on your hard drive consists of files and folders. The basic difference between the two is that files store data, while folders store files and other folders. The folders, often referred to as directories, are used to organize files on your computer. The folders themselves take up virtually no space on the hard drive. Files, on the other hand, can range from a few bytes to several gigabytes. They can be documents, programs, libraries, and other compilations of data.
Answered by
29
Hi,
Hey first of all I want to clear that directory means folder.
There is one major difference in file and directory is that file contains extension
for example .html, .exe, .php etc
whereas directory (folder) contains only name of that folder not extension.
Similar questions
Math,
9 months ago
Math,
9 months ago
Psychology,
9 months ago
English,
1 year ago
English,
1 year ago