The ChangeFileExt function changes the extension on the given file path to that specified.
The Filename parameter can be either a file name, or a complete file path.
The Extension parameter should be given with the full-stop.
Declaration: Function ChangeFileExt( const FileName, Extension : string) : string
A basic example.
Some additional examples follow.
The following portion of the log shows how the extension has been changed by the above code.