User Tools

Site Tools


Sidebar

file:function_extension

extension()

Function that returns the file extension of the file. The file extension is always lowercase and includes the dot. This function is the equivalent of the method extension()

Usage

var myfile = new File("C:/myfile.txt");
var extension = extension(myfile.fsName);

Parameters

Parameter ^ Data type ^ Required ^ Description ^

filename string Yes The file name or absolute path of the file

Return Values

Value Meaning
extension The extension of the file, such as .txt
file/function_extension.txt · Last modified: 2017/05/25 10:12 (external edit)