System.AnsiStrings.ExtractFileExt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ExtractFileExt(const FileName: AnsiString): AnsiString;

C++

extern DELPHI_PACKAGE System::AnsiString __fastcall ExtractFileExt(const System::AnsiString FileName)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

Description

Extract extension part of filename.

ExtractFileExt extracts the extension part of the given filename. The resulting AnsiString includes the period character that separates the name and extension parts. The resulting AnsiString is empty if the given filename has no extension.

See Also