Lua:extractFileExt

From Cheat Engine
Jump to navigation Jump to search

<> Lua API Reference

function extractFileExt(filepath) : string

Returns the file extension of the given path.

Function Parameters[edit]

Parameter Type Description
filepath String The path to extract the file extension from.

Returns[edit]

string — The file extension of the given path.

Examples[edit]

local extension = extractFileExt("C:\\\\Temp\\\\example.txt")

print(extension)
-- .txt

Main Pages

Core Lua documentation entry points

Lua
Script Engine