From: "Tom Lake"
Subject: Re: random file record size
>Why would one have records in a random access file 1024 bytes each?
>A program I use has records like that. The data for each record only
>makes up 468 bytes and the extra unused 556 bytes goes into an unused
>string variable, making the records 1024 bytes each.
>
>If there's a reason for this, is the same true for records of 2048,
>4096, etc. bytes each? How about 512, 256, 128, etc. bytes?
The programmer could have been leaving room for future expansion, or (s)he
could have wanted to read the data into an array > 128K. When using huge
arrays, the record size must be a power of 2 to use arrays > 64K in QB, PDS
or VBDOS.
Tom Lake
*** QwkNews (tm) v2.1
* [TN71] Toast House Import
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/561)
|