>>  <<  Usr  Pri  JfC  LJ  Phr  Dic  Rel  Voc  !:  Help  User

Keyed Files (keyfiles)

A keyed file is a J component file in which the components are accessed using keywords.

A keyword may be any character string.

Load the keyed file system with:

   load 'keyfiles'

This defines the main functions:

keycreate

create file

keydir

keyword directory

keyerase

erase file

keyread

read data for keyword

keywrite

write date for keyword

read: if keyword not found, return '' else return value
write: if data='' then keyword is deleted

Examples:

   keycreate 'mydata'
1

   'Peter Rabbit' keywrite 'mydata';'name'
   'Lake District' keywrite 'mydata';'loc'
   
   keydir 'mydata'
loc  name

   keyread 'mydata';'loc'
Lake District

>>  <<  Usr  Pri  JfC  LJ  Phr  Dic  Rel  Voc  !:  Help  User