12-35
Creating A Script File
<size>
is a previously defined string or integer variable (see
var
) which will
store the size of the file.
<mode>
is a previously defined string variable which will store the mode.
<modtime>
is a previously defined string variable which will store the time of the
last modification.
<uname>
is a previously defined string or integer variable which will store the
user name.
<gname>
is a previously defined string or integer variable which will store the
group name.
Note that if you require a value which follows one or more that are not required, you
will still need to supply variables for them. For example, if you only wanted the time
that the file was last modified, you would need to specify a variable for
<size>
and
<mode>
as well as
<modtime>
.
You can use this command to check for the existence of a file. For example, to check
the existence of the file
myfile.tmp
, you could specify the following:
file stat "myfile.tmp"
if errno == 13
wrt "did not find myfile.tmp"
FILE WPUT
Syntax:
FILE WPUT <handle> <variable>
This will write the character assigned to a variable to a file, where
<handle>
is the integer variable specified by the
file open
command and used to
identify the file.
<variable>
is a previously defined variable (see
var
) which contains the character
to be written.
More than one variable may be specified to write successive characters to the file.
Refer to the
Error Numbers
section later in this chapter for a list of possible error
numbers for this command.
FILE WRITE
Syntax:
FILE WRITE <handle> <variable> <length>
This will write characters assigned to a variable to a file, where
<handle>
is the integer variable specified by the
file open
command and used to
identify the file.
Содержание -05W
Страница 1: ...TeemTalk 05W 07W 11W User s Guide...
Страница 38: ...2 24 Getting Started Notes...
Страница 58: ...3 20 Keyboard Configuration Notes...
Страница 152: ...8 20 File Transfer Notes...
Страница 162: ...9 10 ICL FTF File Transfer Notes...
Страница 324: ...13 32 Dynamic Data Exchange Text1 i 12 LinkItem 0 i 80 Text1 i 12 LinkMode 1 Next i End If End Sub...
Страница 336: ...C 6 Key Reference Numbers Notes...
Страница 360: ...E 16 Host Command Summary Notes...
Страница 370: ...Index 10 Index X XMODEM 8 1 XMODEM 1K 8 1 Y YMODEM Batch 8 2 Z ZMODEM 8 2 Zoom Button 2 17...