FileSize

Top  Previous  Next

Prototype

 

IntSize:=FileSize(intFileHandle)

 

Description

 

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

 

// Store file handle

strFile:=FileOpen('c:\images\1.tif');

 

// Store the image size in a variable

FileDim:=FileSize(strFile);

 

// Closes the file

FileClose(strFile);

 

// If file size are less than 100 bytes displays a message.

If FileDim <= 100 then ApplicationLog('The image is not correct');