FileSize
Previous  Top  Next

Prototype

IntSize:=FileSize(intFileHandle)

Description

It returns the size in bytes of a file.

Parameters

IntFileHandle: integer numerical value that corresponds at the handle of the file.

Returned value

IntSize: : integer numerical value that corresponds to file size.

Notes

None.

Example

// It stores file handle
UnFile:=FileOpen('c:\images\1.tif');

// It stores the image size in a variable
FileDim:=FileSize(UnFile);

// Closes the file
FileClose(UnFile);

// If file size are less than 0 displays a message.
If FileDim <= 0 then ApplicationLog(_CurrentAgent,'The image is not correct');