read

Synopsis

void read(string)

Description

The read command loads a factbase from a file on disk into memory, adding the facts in the file to the ones already loaded. Duplicates, if any, are eliminated. The argument should contain the pathname of the factbase to load. The pathname must be either relative from the current directory, or absolute. Tilde expansion or other shell-like expansions are not performed on the pathname string.

The read function uses the extension of the file to determine the format it is in. Currently, three formats are supported, with the following extensions:

  • .ta - Tuple Attribute file
  • .rsf - Rigi Standard Format file
  • .gxl - Graph eXchange Language file
No format is considered default; if a file does not have an extension, read will refuse to open it.

BUG. The GXL reader/writer is currently broken, and causes QL to crash. It is therefore impossible to read GXL files with the read command.

See Also

getta putta appenddb appendta getGXL getdb putdb