Working with File Types

I've mentioned file types a couple of times in this chapter, so perhaps it's time to take a closer look at them. A file is an object, so it has various properties, including its name, its size, and the date and time it was created. The extension part of the filename determines another property: the file type. For example, a file with the extension .TXT is a text document, and a file with a .BMP extension is a bitmap.

The file type, in turn, defines which actions you can use with the file. A text document, for example, has two actions: Open, which displays the document in Notepad, and Print, which sends the document to the Windows 98 default printer. (Technically, the Print action opens Notepad, loads the document, selects ...

Get Windows® 98 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.