{{tag>Function Function_List Files}} ====== FILE_EXTENSION ====== ===== Description ===== Returns the extension of the specified file or document ===== Syntax ===== ''FILE_EXTENSION (file)'' Cannot be used in the condition of a [[:ref:a_f:a:find|FIND]] action. ===== Parameters ===== An expression returning a string identifying a file or directory name or an attribute of the Document type ===== Returns ===== **Text**: the extension of the file or document. ===== Example ===== DISPLAY MESSAGE ('File extension is ' + FILE_EXTENSION('c:/myfile.txt')) ===== Related ===== [[ref:a_f:f:af:file_name|FILE_NAME]], [[ref:a_f:f:af:file_size|FILE_SIZE]], [[ref:a_f:f:af:file_exists|FILE_EXISTS]]