Computer Science, asked by samikshya99, 1 year ago

Difference between file and directory

Answers

Answered by chagahak1
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 Anonymous
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