Top  Previous  Next


The QMReadSeq() function reads a line of text from a sequential file. It is analogous to the QMBasic READSEQ statement.


The function arguments are:


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


Erris an integer variable to receive status information. This argument is not present in all variants of the QMClient API.



The QMReadSeq() function requests the server to return the next line of text from the file opened as FileNo.


If successful, the function returns the data, excluding the line terminator.


The example program fragments below open a sequential item named STOCK in the IMPORT file, read the first line of text and then closes the file. A real program should test the error status from the read to determine if the action was successful.







hmtoggle_plus1QMBasic Class Module







See also:

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