Did you read anything other than the title and the last message? for example, the first. I already use this function.
These two different functions
You use this:
From System: function FileSize(var f: file):Int64;
I talking about this:
From FileUtil: function FileSize(const Filename: string):Int64; overload;
But when I hold down the CTRL and left-click on FileSize in "V1: = FileSize (MyFile);", it shows this function:
function FileSize(const Filename: string): int64; overload; inline;
I do not understand how to change the code for it:
V1:= FileUtil.FileSize(MyFile);
but then he writes the following error, v1 type LongInt:
Error: Incompatible type for arg no. 1: Got "File", expected "AnsiString"