JCL Help:FileGetSize

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the size of the specified file.


Pascal

 function FileGetSize(const FileName: string): Int64;


Parameters

Parameters Description
const FileName: string The fully qualified name of the file.


Return Value

If the function succeeds it returns the size, in bytes, of the specified file. If the function fails, for example because the file does not exist, the result is -1.


Description

FileGetSize returns the size, in bytes, of the specified file. Note that this function is limited to files whose size is no larger than 2GB.


About

Unit

JclFileUtils


Donator

Pelle F. S. Liljendal


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