476
Platforms
©2000-2008 Tibbo Technology Inc.
Details
The file string will always be truncated to 56 characters. Leading spaces will be
removed. If you open the file "on" the file number which already had another file
opened "on" it, the system "forgets" all about the previously opened file. This may
potentially lead to the loss of the very latest changes you've made to the previous
file. Always close the previous file first by using the
, or "flush" the
changes by using the
.
The file with the specified name must exist or the 9- PL_FD_STATUS_NOT_FOUND
status codes returned.
The 11- PL_FD_STATUS_ALREADY_OPENED status code is returned if the same file
is already opened "on" some other file number.
All other possible error states are "generic" and are not described here.
.Pointer R/O Property
Function:
Returns the pointer position for the file opened "on" the
currently selected file number (selection is made through
the
or zero if no file is currently opened.
Type:
Dword
Value Range:
0 to
+1 (except for fd.filesize= 0, in which
case fd.pointer= 0 too).
See Also:
Writing To and Reading From Files
,
Details
For the files of 0 size (see
), the pointer will always be at 0. If the file
has non-zero size, the pointer can can be between 1 and fd.f1. "1" is the
position of the first byte of the file. The last existing byte of the file is at position
equal to the value of fd.filesize. "Fd.f1" is the position at which new data
can be added to the file.
The pointer can be moved using the
or
moves the pointer forward automatically by the number of
bytes that were read from or written to the file.
Reducing the file size through the
may affect the pointer position.
If the file size becomes zero, the pointer will also be set to 0. If the new file size is
not zero, but its new size makes current pointer position invalid (that is, fd.pointer
> fd.f1) then the pointer will be set to fd.f1.
.Ready R/O Property
Function:
Informs whether the flash disk is mounted and ready for
use.
Type:
Enum (no_yes, byte)
Value Range:
0- NO: The disk is not mounted and not ready for use
(default).
1- YES: The disk is mounted and ready for use.
See Also:
,
460
466
463
464
444
478
464
482
469
480
481
435
439