Re: [fpc-pascal] Obtain file size?

2017-10-07 Thread Sven Barth via fpc-pascal
Am 07.10.2017 21:08 schrieb "Paul Nance" : > > 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 do

Re: [fpc-pascal] Obtain file size?

2017-10-07 Thread Paul Nance
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. On Oct 6, 2017 7:14 PM, "James Richters" wrote: I am wondering how to get the file size reported by the OS for a particular file

Re: [fpc-pascal] Obtain file size?

2017-10-07 Thread Sven Barth via fpc-pascal
Am 07.10.2017 01:13 schrieb "James Richters" : > > I am wondering how to get the file size reported by the OS for a particular file without opening it. I tried to search for ‘Free Pascal File Size’ and variations but all I get are things like this: > > > > https://www.freepascal.org/docs-html/rtl

[fpc-pascal] Obtain file size?

2017-10-06 Thread James Richters
I am wondering how to get the file size reported by the OS for a particular file without opening it. I tried to search for ‘Free Pascal File Size’ and variations but all I get are things like this: https://www.freepascal.org/docs-html/rtl/system/filesize.html which is not what I’m look