Icon FileSize

Unit: Internal

Available In: Server Applications

function FileSize(const FileName: String): Integer

The FileSize function returns the size, in bytes, of the file input parameter. The return value is an Integer value.

Information The specified file name should contain an absolute path. Relative paths are permitted, but they rely on the current working directory. The current working directory is a per-process setting and is not reliable in a multi-threaded setting like the web server.

Examples

X := FileSize('C:\temp\test.html');  // X is 25547
Image