Exactly! This is the way Windows recognises file extensions, for example by showing the appropriate icon by the file name in the explorer. If for a Word document you change the file name adding a .tmp extension, this file will no longer be recognised by Windows as a Word document. Let's be clear on it. The extension is the last part of the file name, starting with a dot (first from the right / last from the left). If there is no dot in the file name, the file has no extension (empty extension?).Stefan2 wrote:Then .tmp is the extension just now.Sir_SiLvA wrote:And what if you got a file like <document>.doc.tmp ?kwanbis wrote:last dot from the left separates the extension.
...
See for example http://filext.com/faq/file_extension_information.php:
The basic form of a filename is:
rootname.ext
The first part of the name to the left of the period is called the root name. The root name cannot be the same as a device name. The second part to the right of the period is the extension. It is optional and is often, but not necessarily, three characters long. Under MS-DOS the rootname could only be eight characters long and the extension no more than three so three characters (or less) is often still the default although under Windows 95 and above that limit is now gone. Some still use three characters for files that must be backward compatible for still-running DOS-based systems.
The period is used between the root name and extension and must be present if there is an extension. The root name under Windows may contain multiple periods. Only the last one is the divider between the root name and extension.