JCL Help:GetFileInformation@string

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns information about a file.


Pascal

 function GetFileInformation(const FileName: string; out FileInfo: TSearchRec): Boolean; overload;
function GetFileInformation(const FileName: string): TSearchRec; overload;


Parameters

Parameters Description
const FileName: string Fully qualified name of the file for which to retrieve information.


Return Value

If the function succeeds it returns a TSearchRec with information about the file. The Delphi help contains documentation for this record. If the function fails, for example because it can't find the file, it raises an EWin32Error exception.


Description

GetFileInformation returns a TSearchRec record containing information about the specified file such as creation time, filesize and so forth.


See Also

GetStandardFileInfo


About

Unit

JclFileUtils


Donator

Marcel van Brakel


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