Intrinsic-91 GetFileInfo

Top  Previous  Next

91: GetFileInfo(Handle, @Size);

 

This intrinsic returns the size of the file specified by the Handle value. The Handle is a value returned by the FOpen intrinsic, and it specifies the target file. The Size variable should be a four-word array that specifies a 64-bit value for the file size. If the programmer knows in advance that the file will be less than 64K in length, only the first word needs to be used. Likewise, if the programmer knows that the file will be less than 4 gigabytes, only the first two words need to be used.