| 
| Description |  | The ExtractFileExt function extracts from FullFileName the extension substring. 
 The extension is give inclusive of the '.' prefix, such as .txt
 |  |  |  | Related commands |  |  |  |  | 
| Example code : Extract all of the parts of a full file name |  | var fullFileName : string;
 
 begin
 // Set up a full file name with drive and path
 fullFileName := 'C:\Program Files\Borland\Delphi7\Projects\Unit1.dcu';
 
 // Show the component parts of this full name
 WriteLn('Drive = '+ExtractFileDrive (fullFileName));
 WriteLn('Dir   = '+ExtractFileDir   (fullFileName));
 WriteLn('Path  = '+ExtractFilePath  (fullFileName));
 WriteLn('Name  = '+ExtractFileName  (fullFileName));
 WriteLn('Ext   = '+ExtractFileExt   (fullFileName));
 end;
 
 |  
 
| Show full unit code |  | Drive = C: Dir   = C:\Program Files\Borland\Delphi7\Projects
 Path  = C:\Program Files\Borland\Delphi7\Projects\
 Name  = Unit1.dcu
 Ext   = .dcu
 
 |  |