Files may contain (human readable) text, binary data, or both. Files may be meant to be executed, processed by an application, or edited in a simple text editor.
A file does not need any extension (like a
to be executed (it needs execution permission).
Applications may need to identify the type of files. File extensions are often used for this purpose.
- Determine file type.