getExt()

The function returns the file extension.

Synopsis

string getExt(stringpath);

Parameters

Parameter Description
path The file path

Return value

The function returns the file extension.

Error

-

Description

The function returns the file extension of the specified file.

Example

main()
{
  string from, ext;
  from = "test.txt";
  ext = getExt(from);
  DebugN("Result of getExt ", ext);
}

Assignment

File functions

Availability

CTRL