Original Format Workfiles
The original Qedit workfiles have a block size of 512 bytes and can hold up to 65,535 lines with a maximum length of 256 characters. Added control information is kept in user labels.
Within an original format data block, the structure is as follows:
Word Within Block Contents Comment (000) Forward-pointer First word in block (001) Line-number First word of first line (002) (cont.) (003) Data and Indent Descriptor for first line (004) "AB" Contents of first line (005) "CD" (...) (cont.) (...) (Data+003) "YZ" End of first line (Data+004) Line-number Start of second line (Data+005) (cont.) (Data+006) Data and Indent (Data+007) "12" (...) (...) "89" End of last line (...) Binary-zero Unused portion of block. (...) (cont.) Binary-zeros are missing (255) (cont.) if the block is full.
The following definitions are used above:
Forward-pointer: block number of the next block (16-bit unsigned).
Line-number: a 32-bit integer containing the line number in binary (1,000 = 1.0).
Data: the number of words of data in the line (byte).
Indent: number of full words of blanks before the data (byte).
Qedit Version Number
Open stores the version number of the Qedit program file into the workfile that it opens. A 16-bit integer is stored at word offset 107 of user label 0 (“QEDIT0″) or at word offset 363 of Block 0 for Jumbo files. The format is, for example, 4258 for version 4.2.58, 4300 for 4.3, and 4301 for 4.3.01.