The FileType_GetExtension() function retrieves the file extension for a specified file type.
FileType_GetExtension(file_type)
• file_type – An integer specifying the file type for which the extension will be returned. The following table lists the constants for the file types of which an extension can be returned.
Constant |
Description |
---|---|
TEXTFILE |
Text file |
TABFILE |
Tab-delimited file |
COMMAFILE |
Comma-delimited file |
HTMLFILE |
HTML file |
PDFFILE |
PDF file |
XMLFILE |
XML file |
APPFILE |
Application file |
DICTIONARY |
Dictionary file |
LAUNCH |
Launch file |
MACROFILE |
Macro file |
DOCXFILE |
Microsoft Word file |
XLSXFILE |
Microsoft Excel file |
XPSFILE |
XPS file |
RTFFILE |
Rich Text file |
A string containing the file type extension. The extension does not include the initial period character.