If you want to change the file extension of a filename just do something like so:Originally Posted by Cer3brus
[pascal]FileName := ChangeFileExt(FileName,'.bmp');[/pascal]
This will change the file extension to '.bmp' for example...
If you want to extract a file extension:
[pascal]Ext := ExtractFileExt(FileName);[/pascal]
cheers,
Paul
Bookmarks