[fpc-pascal] Obtain file size?

Sven Barth pascaldragon at googlemail.com
Sun Oct 8 00:25:12 CEST 2017


Am 07.10.2017 21:08 schrieb "Paul Nance" <pwnance at gmail.com>:
>
> I've always (since Turbo Pascal and now with Free Pascal) used FILESIZE.
It works like a charm.
> Even if you do it in assembly its done the same as its done in pascal.

FileSize() has the disadvantage that you need to open the file. But what if
you don't have permissions for that? Permissions to retrieve the file size
when the file is closed are usually available on the other hand, but for
this another mechanism must be used.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20171008/c32c28b1/attachment.html>


More information about the fpc-pascal mailing list