GetExtension(Path: String): String;
Path — path string from which an extension should be obtained.
The GetExtension method returns an extension of a specified path string.
Sub Main;
Var
Path_File, s: String;
Begin
Path_File:="c:\Work\1.txt";
s:=Path.GetExtension(Path_File);
End Sub Main;
After executing this example, the "s" variable contains .txt.
See also: