ExtractFileExt

From SCAR Divi Manual
Revision as of 14:33, 3 July 2011 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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