ChangeFileExt
function ChangeFileExt(FileName, Extension: string): string;
This function changes the extension of a file name. It operates on a string and returns a string, it does not rename the actual file.
Parameters
FileName |
The string that contains the file name |
Extension |
The new extension including the leading dot. Ex: '.txt' |
Return value
String |
The function returns a string which contains the new file name after changing the extension |