本文整理自网络,侵删。
function GetFileSize(const fName: AnsiString): Int64;
var
hFile: THandle;
begin
hFile := _lopen(PAnsiChar(fName), OF_READ);
Result := FileSeek(hFile, Int64(0), 2);
_lclose(hFile);
end;
来源:https://www.cnblogs.com/findumars/p/7841231.html
相关阅读 >>
Delphi firdac 对 sqlite 数字, int64也会被截断,会出现负数情况处理
Delphi sendmessage这个函数有很多奇妙的用途
Delphi runtime error 216 程序退出后弹出错误
更多相关阅读请进入《Delphi》频道 >>