|
The QMWriteBlk() function writes a specified number of bytes to a sequential file. This is analogous to the QMBasic WRITEBLK statement.
The function arguments are:
| FileNo | is the file number returned by a previous QMOpenSeq() call. |
| Rec | is the data to be written. |
| Bytes | is the number of bytes to be written. Note that this argument is not present in all variants of the QMClient API as it may be possible to determine the size of Rec internally. |
The example program statements below write the binary data in LogRec to the file opened to the fLog variable.
void QMWriteBlk(int FileNo, char * Rec, int Bytes)
QMWriteSeq(fLog, LogRec, LogRecSize);
|
QMWriteBlk ByVal FileNo as Integer, ByVal Rec as String, ByVal Bytes as Integer
QMWriteBlk(fLog, LogRec, LogRecSize)
|
WriteBlk(FileNo, Rec)
session->WriteSeq(fLog, LogRec)
|
WriteBlk(int FileNo, byte[] Rec)
qm.WriteSeq(fLog, LogRec);
|
WriteBlk(FileNo, LogRec)
qm.WriteSeq(fLog, LogRec);
|
See also:
QMOpenSeq(), QMReadBlk(), QMReadSeq(), QMSeek(), QMWeofSeq(), QMWriteSeq()
|