QMSeek()

QMSeek()

Top  Previous  Next

 

The QMSeek() function positions in a sequential file. This is analogous to the QMBasic SEEK statement.

 

The function arguments are:

 

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

 

Offsetis the desired file position.

 

RelTodetermines where Offset is relative to:
0Start of file
1Current position
2End of file

 

The example program statements below set the current file position in the file opened to the fLog variable to be at the point specified by the Pos variable relative to the start of the file.

 

 

hmtoggle_plus1C

 

hmtoggle_plus1VB.Net

 

hmtoggle_plus1QMBasic Class Module

 

hmtoggle_plus1Java

 

hmtoggle_plus1Python

 

 

See also:

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