infile: file of byte;
Infilename: string;
size: longint;
now after
Assignfile(infile, infilename)
infilename a string containing name of file on disk infile the actual file made up of bytes of info
The accepted way of finding the size in bytes of this file in turbo pascal, delphi and (think) freepascal is
size := FileSize(infile)
BUT this does not seem to work with lazarus
whereas
size := FileSize(infilename);
does!
Which seems a bit wierd - why differ from the pascal norm?
Any ideas?
Regards
ynys