This example retrieves the extension of file "irvine.pix", and print it out.
The return value is the extension of the given filename. It will be an empty string if there is no extension.
local string ext
ext = GetFileBasename( GetPCIHOME() + "/demo/irvine.pix" )
print ext
pix
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.