File rget, File seek, File stat – Xerox -05W User Manual
Page 238

12-34
Creating A Script File
FILE RGET
Syntax: FILE RGET
This will get a single character from a file and assign it to a variable, where
is the integer variable specified by the file open command and used to
identify the file.
the character. Note that if the variable was created in the integer for-
mat, the decimal value of the character will be assigned to it.
More than one variable may be specified to store successive characters from the file.
Refer to the Error Numbers section later in this chapter for a list of possible error
numbers for this command.
FILE SEEK
Syntax: FILE SEEK
This command specifies the location within a file at which character read and write
operations are to occur, where
is the integer variable specified by the file open command and used to
identify the file.
defines the approximate position in the file as start, current or end
(which may be abbreviated to S, C and E, respectively).
defines the particular character location as the number of characters
from the
(e.g. +6 or -25). This parameter may be omitted.
The following example will move the location to twelve characters from the end of
the file identified by the handle id:
file seek id e -12
Refer to the Error Numbers section later in this chapter for a list of possible error
numbers for this command.
FILE STAT
Syntax: FILE STAT
This will get the statistics of the specified file and place them in the previously
defined string variables, where
the only entry that must be specified, the others are optional.