Writing Records into a File in Sequential Order [ SPL to HP C/XL Migration Guide ] MPE/iX 5.0 Documentation
SPL to HP C/XL Migration Guide
Writing Records into a File in Sequential Order
SPL uses the FWRITE intrinsic to write all or part of a record in a
sequential file with fixed- or variable-length records. A logical record
pointer points to the next record to be written. When any part of a
record is written, the pointer advances to the next record.
The HP C/XL functions provide many choices for output. You may use
fputs, fwrite, or write to emulate the SPL record structure. Or you may
use the printf and fprintf to write formatted, variable-length text
records. With the latter two, you must identify the end of each record
to HP C/XL by writing a '\n' (linefeed) character. The '\n' is not
actually stored in the file.
MPE/iX 5.0 Documentation