QMWriteBlk()

QMWriteBlk()

Top  Previous  Next

 

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:

 

FileNois the file number returned by a previous QMOpenSeq() call.

 

Recis the data to be written.

 

Bytesis 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.

 

 

hmtoggle_plus1C

 

hmtoggle_plus1VB.Net

 

hmtoggle_plus1QMBasic Class Module

 

hmtoggle_plus1Java

 

hmtoggle_plus1Python

 

 

See also:

QMOpenSeq(), QMReadBlk(), QMReadSeq(), QMSeek(), QMWeofSeq(), QMWriteSeq()