User Tools

Site Tools


Sidebar

file:extension

.extension()

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

Usage

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

Parameters

This method has no parameters.

Return Values

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