QMWeofSeq()

QMWeofSeq()

Top  Previous  Next

 

The QMWeofSeq() function truncates a sequential file. This is analogous to the QMBasic WEOFSEQ statement.

 

The function takes a single argument, FileNo, as the file number returned by a previous QMOpenSeq() call.

 

The QMWeofSeq function truncates the file opened as FileNo such that any data beyond the current file position is discarded.

 

 

The example program fragments below write the line of text in ReportData to the file opened to the fReport variable and then truncate the file to remove any old data beyond that position when overwriting a file.

 

 

hmtoggle_plus1C

 

hmtoggle_plus1VB.Net

 

hmtoggle_plus1QMBasic Class Module

 

hmtoggle_plus1Java

 

hmtoggle_plus1Python

 

 

See also:

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