FilePro key file 20 byte header format

Bill Campbell bill at celestial.com
Thu Sep 12 08:58:06 PDT 2019


On Thu, Sep 12, 2019, Nancy Palmquist via Filepro-list wrote:
>Bill,
>
>Ignore the first 20 bytes of the key file, start using the map sizes from
>there and all works great.  The data segment, if there is one, is exactly
>like the map indicates.

The problem there is that it will pick up deleted records.

I got a couple of emails directly that gave me the info I need.
In short, the first digit is 0 if deleted, 1 if in use.  There's
other info in the header, but that's all I need.

>Easy to read since it is a fixed length structure.  I do not think it has a
>record delimiter, just fixed length.

That's correct.  The only gotcha might be if the application
populated the 'data' files which then required getting data from
both the key and data files requiring 2 reads per record.  This
is a relic of profile on the Radio Shack TRS-80s running TRSDOS,
and I haven't seen it for decades.

Bill
-- 
INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www2.celestial.com/ 6641 E. Mercer Way
Mobile:         (206) 947-5591  PO Box 820
Fax:            (206) 232-9186  Mercer Island, WA 98040-0820

I offer my opponents a bargain: if they will stop telling lies
about us, I will stop telling the truth about them. 
  -- Adlai Stevenson, campaign speech, 1952


More information about the Filepro-list mailing list