baseName()

The function returns the last part of a file path.

Synopsis

string baseName(string path);

Parameters

Parameter Meaning
path The file path

Return Value

The last part of a file path

Errors

Missing or wrong parameter definitions.

Description

The function returns the last part of the specified file path. In the example below, the function returns "SubTest".

Example

main()
{
  string result;
  ergebnis = baseName("C://test2//SubTest//");
  DebugN(result);
}

Assignment

File functions

Availability

CTRL