Guardian Programmer's Guide

Table Of Contents
Using the File System
Guardian Programmer’s Guide 421922-014
2 - 20
Reading and Writing Data
The actual number of bytes transferred is returned in NUMXFERRED. The positions of
the pointers are as follows. The next-record pointer is increased by 512 bytes; the
current-record pointer still addresses relative byte 0:
If you reissue an identical READX call, the next 512 bytes are read into SBUFFER
(starting at byte 512). The next-record pointer is increased by 512 bytes and now
points to relative byte address 1024; the current-record pointer points to relative byte
512:
RCOUNT := 512;
CALL READX(FILENUM,
SBUFFER,
RCOUNT,
NUMXFERRED);
VST009.VSD
VST009.VSD
VST010.VSD