QMOpenSeq() |
|
|
The QMOpenSeq() function opens a sequential file. It is analogous to the QMBasic OPENSEQ statement.
The function arguments are:
The returned integer value is the file number which must be used in all subsequent operations against this file. If the file cannot be opened, the function returns zero. The QMStatus() function can be used to retrieve the error cause.
If the item does not exist, QMOpenSeq() returns a valid file number and the item will be created by subsequent use of any function that writes to the file.
There is no practical limit to the number of files that can be open at one time.
The examples below open a sequential file in the directory identified by VOC item REPORTS using the value in DATE as the record name. The modes value is given in hexadecimal form as the additive value that combines return of an error code if the item is locked and selection of overwrite mode. This could alternatively have been written as the decimal value 514.
See also: QMReadBlk(), QMReadSeq(), QMSeek(), QMWeofSeq(), QMWriteBlk(), QMWriteSeq() |