- To detect file types when you try to open it.
- File extensions enable the operating system in identifying the appropriate software to open that specific file.
- To detect malicious files: