478
Platforms
©2000-2008 Tibbo Technology Inc.
This method will preserve original attributes of the file (use
if
you want to change those). Since both the filename and attributes must fit into 56
characters (including a space character for separation), renaming a file may lead
to a (partial) loss of attribute data. This will happen when the new file name is
longer than the old one and the combined length of the new file name and existing
attributes (including a separating space) exceeds 56 characters.
.Resetdirpointer Method
Function:
Resets the directory pointer to zero.
Syntax:
fd.resetdirpointer()
Returns:
---
See Also:
Walking Through File Directory
,
Details
Use this method before repeatedly invoking
in order to
obtain the list of files currently stored on the disk.
.Sector R/O Property
Function:
Returns the physical sector number corresponding to the
current position of the file pointer.
Type:
Word
Value Range:
0-65535
See Also:
Writing To and Reading From Files
,
Details
Because the sectors belonging to a given file may be scattered around the flash
disk, there is no simple way to figure out the number of the physical sector
corresponding to the current file pointer position (see
). This property
can be used, for instance, to backup a sector prior to making changes to its data.
.Setattributes Method
Function:
Sets the attributes string for a file with the specified file
name.
Syntax:
fd.setattributes(byref name as string, byref attr as
string) as pl_fd_status_codes
478
442
471
470
444
454
476