MAINSAIL Language Manual, Section 44.4

previous   next   top   contents   index   framed top   this page unframed


44.4. $pageWrite

Figure 44–4. $pageWrite
PROCEDURE   $pageWrite  (POINTER(dataFilef;
                         
ADDRESS memAdr;
                         
LONG INTEGER startPage;
                         
OPTIONAL LONG INTEGER numPages);

$pageWrite writes numPages pages of data from the ADDRESS memAdr to f, starting at page startPage in the file (the first page is numbered zero). A page is $pageSize storage units. If numPages is less than or equal to zero, one page is written.

Unless f is opened for random access, $pageWrite succeeds only if the file is positioned at the start of the page to be written; otherwise, an error message is given.

$pageWrite may be especially efficient if the file was opened with the $unbuffered bit.

$storageUnitWrite and $characterWrite are other PROCEDUREs used to write large amounts of data to a file with a single PROCEDURE call.

$pageWrite does not modify or translate data from files opened for PDF I/O, since it has no way to know the data type(s) of the data written.


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 44.4