, July 09, 2017 2:44 PM
To: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org>
Subject: Re: [fpc-pascal] Fixed record files
Hi,
"packed record" is for compatibility. Its guaranteed that inner alignment and
size of record will be always the same and will not change in
ref/refsu15.html
V.
__
Od: "James Richters" <ja...@productionautomation.net>
Komu: "'FPC-Pascal users discussions'" <fpc-pascal@lists.freepascal.org>
Datum: 09.07.2017 20:12
Předmět: Re: [fpc-pascal] Fixed record files
I don't un
lt;fpc-pascal@lists.freepascal.org>
Subject: Re: [fpc-pascal] Fixed record files
Hello,
I'll try something like
If filesize(drawfile)>0 then
Seek(drawfile, sizeof(drawfile)-1)
else
"empty file";
For portability of you file and software, I recommand you to use a "packed
record&q
Hello,
I'll try something like
If filesize(drawfile)>0 then
Seek(drawfile, sizeof(drawfile)-1)
else
"empty file";
For portability of you file and software, I recommand you to use a "packed record" with an internal
forced word-align of the double data. If size matters, no need to align.