ExtractFileExt

From SCAR Divi Manual
Jump to: navigation, search

Definition

function ExtractFileExt(FileName: string): string;

Availability

SCAR Divi 3.00 > Current

Description

Extracts the extension of a file path/name given by FileName. The result includes the leading dot.

Example

begin
  WriteLn(ExtractFileExt('C:\Folder\File.Ext'));
  WriteLn(ExtractFileExt('File.Ext'));
end.

Output:

.Ext
.Ext

See Also