ChangeFileExt function
Change the extension of a filename.
Declaration
function ChangeFileExt(const FileName: UnicodeString;
const Extension: UnicodeString): UnicodeStringDescription
ChangeFileExt changes the file extension in
FileName to
Extension.
The extension
Extension includes the starting
. (dot).
The previous extension of
FileName are all characters after the
last
., the
. character included.
If FileName doesn't have an extension, Extension is just
appended.
If Extension is empty, the effect of this function is to remove any existing extension.
Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
