The
term File Types
describes the collection of
associations between documents and the applications that use them.
The most apparent use of this feature is that, for example, Windows
knows to run Notepad when you double-click on a text document in
Explorer (proof that Windows XP is not truly object oriented).
True object-oriented design dictates that objects (in this case,
files and folders) be aware of their own traits. This design is only
mimicked in Windows XP. Instead of each file's
knowing which application is used to edit it, Windows determines how
to handle a file based solely on the filename extension. This design
has advantages and disadvantages, but Microsoft's
decision to hide filename extensions, the basis for file
associations, only makes the whole system more difficult to
understand and master.
It all starts with file extensions, the letters (usually three) that
follow the period in most filenames. For example, the extension of
the file Readme.txt is
.txt, signifying a plain text file; the
extension of Resume.wpd is
.wpd, signifying a document created in
WordPerfect. By default, Windows hides the extensions of registered
file types in Explorer and on the desktop, but it's
best to have them displayed.
File extensions not only allow you to easily determine what kind of
file a certain file is (because icons are almost never descriptive
enough), but also allow you to change Windows'
perception of the type of a file by simply renaming the extension.
Note that changing a file's extension
doesn't actually change the contents or the format
of the file, only how Windows interacts with it.
To display your file extensions,
open Folder
Options
in Control Panel (or from
Explorer's Tools
menu), choose the View tab, and turn
off the Hide extensions for known file
types option. Click OK
when you're done.
By hiding file extensions, Microsoft hoped to make Windows easier to
use—a plan that backfired for several reasons. Because only the
extensions of registered files are hidden, the extensions of files
that aren't yet in the File Types database are still
shown. What's even more confusing is that, when an
application finally claims a certain file type, it can appear to the
inexperienced user as though all of the old files of that type have
been renamed. It also creates a "knowledge
gap" between those who understand file types and
those who don't; try telling someone whose computer
still has hidden extensions to find