Your operating system relies on the file extension to determine how to handle files. But the actual file type is determined by the file's internal structure (magic numbers).