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.