469
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
Par
t
Description
offs
et
Starting offset in the buffer. Possible value range is 0-263 (the buffer
stores 264 bytes of data, offset is counted from 0).
len
Number of bytes to read. Will be corrected downwards if necessary.
Details
The length of returned data will depend on one of three factors, whichever is
smaller: len argument, amount of data still available in the buffer counting from
the offset position, and the capacity of receiving string variable.
All status codes generated by this method are "generic" and are not described
here.
.Getdata Method
Function:
Reads a specified number of bytes from the file opened
"on" a currently selected file number (selection is made
through the
).
Syntax:
fd.getdata(maxinplen as byte) as string
Returns:
The string with the data read from the file. The method
also affects the state of the
. The following
status codes are possible:
0- PL_FD_STATUS_OK: Completed successfully.
1- PL_FD_STATUS_FAIL : Physical flash memory failure
(fatal).
2- PL_FD_STATUS_CHECKSUM_ERR: Checksum error has
been detected in one of the disk sectors (fatal).
3- PL_FD_STATUS_FORMAT_ERR: Disk formatting error
has been detected (fatal).
8- PL_FD_STATUS_NOT_READY: The disk is not mounted.
10- PL_FD_STATUS_NOT_OPENED: No file is currently
opened "on" the current value of the
property.
See Also:
Writing To and Reading From Files
,
,
Par
t
Description
ma
xin
ple
n
Maximum number of bytes to read from the file.
Details
463
472
463
444
482
480