[**delphirtl**](../README.md) • **Docs**

***

[delphirtl](../globals.md) / ExtractFileExt

# Function: ExtractFileExt()

> **ExtractFileExt**(`AFilename`): `string`

Extracts the file extension, given the filename, AFileName
For example, if given "Nothing.pas", returns "pas"
If given "Nothing", returns ""

## Parameters

• **AFilename**: `string`

## Returns

`string`

## Defined in

[src/sysutils.ts:284](https://github.com/chuacw/delphirtl/blob/b2d86277a5251f0037cf01044224c3e29dc4c6be/src/sysutils.ts#L284)
