function FileSize64(var F : File): Int64; var ph :_stat; pl:longword; begin pl := fstat(TFileRec(f).Handle, ph); if (pl = $ffffffff) and (GetLastError <> 0) then C