"RIF file documentation by Joel Rubin "Relative files cannot be uploaded or downloaded or easily copied. "A RIF file, on the other hand, may be up or downloaded as a Compuserve ".img or .bin file and copied with a standard file copier. "The RIF file format is simple: "It is a seq file, whose first three bytes are: " chr$(size of records) " chr$(# of records-256*int(# of records/256)) " chr$(# of records/256) "Afterwards, the records are just dumped, one after another. "It should be noted that a relative file, unlike other Commodore files, "exhibits a certain granularity. "A relative file will always extend to the last record which fits "entirely on the last block which is partially used. "Thus, for example, if the records are 40 bytes, and the last record "written begins at byte 24 of the last block, then the relative "file will contain the record from bytes 64-103, 104-143, 144-183, "and 184-223 even those these records were never written. "There is no way to determine from the disk that these records are "not really part of the file. So, if you want to make a definite "end of file, you will have to write a definite character to the "end of the file. (just as you have to end a CP/M text file with "CTRL-Z) "reltrf.img converts a relative file to its corresponding rif "format. It is set up for a single 1541 disk drive but you "can change it. riftrl.img is the inverse program. "The programs are in interpreted BASIC with a machine languge "subroutine. They may be compilable by DTL/InstaSpeed, but "not by any other compiler.
Amiga7878