A File is defined as a set of related data or information that is being stored in secondary storage. A file is data file or a program file where former contains data and information in the form of alphanumeric, numeric or binary and latter containing the program code and can also be executed, is a program file.
It is used to contain many other folders and files. We can have any number of folders, and each folder can have different/numerous entries depending on the files created where each file has a position in a parent folder.
Difference between File and Folder:
|1.||Extensions||Files can have extensions.||Folders does not have any extensions.|
|2.||Organizations||Serial, sequential, indexed sequential and direct file organizations.||Single directory per user and multiple directory per user organization.|
|3.||Contain other same entity||No.||Yes.|
|4.||Basic||Collection of data.||A place to store a group of related files and folders.|
|5.||Space consumption||There is a specific size of a file.||Folder does not consume space in the memory.|
|6.||Properties||It has Name, Extension, Date, Time, Length and Protection attributes.||It has Name, Date, Time and Protection attributes.|
|7.||After Creation||After creation, We can open, save, rename, print, email and modify file content.||After creation, We can move, rename and delete folders.|
|8.||Share on Network||We can not share file on network.||We can share folder on network.|
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Difference between File Transfer Protocol (FTP) and Secure File Transfer Protocol (SFTP)
- Difference between SVG file and PNG file
- Difference between Local File System (LFS) and Distributed File System (DFS)
- Difference between FAT32, exFAT, and NTFS File System
- Difference between Header file and Library
- Difference between YAML(.yml) and .properties file in Java SpringBoot
- Difference between File System and DBMS
- SetUID, SetGID, and Sticky Bits in Linux File Permissions
- Compare file system in Windows and Linux
- Physical and Logical File Systems
- Difference between Stop and Wait protocol and Sliding Window protocol
- Similarities and Difference between Java and C++
- Difference between Yaacomo and and XAP
- Difference between VoIP and and POTS
- Difference and Similarities between PHP and C
- File Allocation Methods
- File Systems in Operating System
- Unix File System
- Path Name in File Directory
- File Access Methods in Operating System
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.