NAME
-
bput - put a random file record
SYNOPSIS
-
bput(recnum)
double recnum;
DESCRIPTION
-
Bput writes record number recnum to the current file (see
initio(io)). Records of a random file are of the same length as
the buffer and are numbered sequentially starting with one. If
recnum is zero, then the write is sequential, in other words, the
next record is written. The pointers within the buffer are reset.
This function resets the current file.
This function implements the PUT statement.
SEE ALSO
-
initio(io)
put(stmt)
DIAGNOSTICS
-
Error 54 (Bad file mode) is generated if the file is not open
for random I/O.
from
The Basmark QuickBASIC Programmer’s Manual
by
Lawrence Leinweber