JFile::getExt

Gets the extension of a file name