Luart
Comprehensive Windows framework to develop in Lua
modules > sys > File > extension

File.extensionreadonly property



The File.extension property returns a string representing the extension of the File, including the "." character.

Example


local file = sys.File("doc\\test.txt")

-- outputs ".txt"
print("file.extension: "..file.extension)