JCL Help:FileGetTypeName

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns a string that describes the file's type.


Pascal

 function FileGetTypeName(const FileName: string): string;


Parameters

Parameters Description
const FileName: string The name of the file for which you want to know the type name. The file does not have to exist physically.


Return Value

String that describes the file type.


Description

FileGetTypeName returns a string that describes the specified file's type. For example, if the file is of type .pas the returned string is 'Delphi Source File' (assuming Delphi 5 is installed). If the file type is not registered or the function fails it returns a string of the form '.PAS File' where '.PAS' is replaced with the file's extension.


About

Unit

JclFileUtils


Donator

Pelle F. S. Liljendal


Platforms

Windows


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page