Sharp OZ-707 Operation Manual - Page 93

com~an, wit~out

Page 93 highlights

Example : 213000~:' CLOLSCATE LOCATE 2,1: PRINT "ABCDE" ,2: PRINT "123" ABCDE 123 )- Format 2 clears the display start position. tt tdUhisreeincdgtilsytpholeavyeLrwOwiCtn~AttoeTuntE. acUffoseemct~ltnhagend~~~~lIIo.~w~s~etemxxattnetdoxcbeectwlweraihttreertnheetcowhaahrnoaylcetpedarirsstpaolarfey . iIsf tshceronlluemd btoersohfocwhaarllatchteersc hexce~edrsth arac , ~vleimnitsif of the display, the display the display start position was specified with the LOCATE command . LOF p o FORMAT: LOF file number Abbreviation: See Also: OPEN PURPOSE: Returns the size of the specified file. REMARKS: The LOF command returns the size of a file with the specified file number. The actual size of t~e file is displayed in bytes. If the device name is COM, this command returns the byte count remaining in the 20-character (40-byte) buffer. An error will occur if the specified file is not open. RAM disk E is used in units of 256 bytes; the total size of all files will not be equal to the total used RAM disk area (number of bytes). EXAMPLE: 10: OPEN "E:FILE01" FOR INPUT AS #2 20: N=LOF(2) 30: PRINT "FILE01 FILE SIZE IN BYTES IS ";N 40: CLOSE #2 50: END f (10] Opens the file FILE01 for input. [20-30] Finds the size of the file and prints out the value. [40] Closes the file. 174 175 d

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128

Example:
10
:
CLS
"ABCDE"
20
' LOCATE 2,1: PRINT
30~
LOCATE
,2
: PRINT "123"
Format 2 clears the display start position.
ABCDE
123
)-
d
lIows
text to be written to any part of
Using the LOCATE
com~an
~
.
xt exce t where characters are
the display
wit~out
affectln
h
g
~~~I~~~emand
tt
clear
the
whole display.
directly overwntten. Use t e
d
th
limits of the display, the display
If the number
of
characters
hexce~ers
~ven
if the display start position
is scrolled to show all the c arac
,
was specified with the LOCATE command.
174
f
d
LOF
FORMAT:
LOF file number
Abbreviation:
See
Also:
OPEN
PURPOSE:
Returns the size of the specified file.
REMARKS:
The LOF command returns the size of a file with the specified file
number. The actual size of
t~e
file is displayed in bytes.
If
the device name is COM, this command returns the byte count
remaining
in
the 20-character (40-byte) buffer.
An
error will occur if the specified file is not open.
RAM
disk E is used
in
units of 256 bytes; the total size of all files will
not be equal to the total used RAM disk area (number of bytes).
EXAMPLE:
10:
OPEN
"E:FILE01"
FOR
INPUT
AS
#2
20: N=LOF(2)
30:
PRINT
"FILE01
FILE
SIZE
IN
BYTES
IS
";N
40:
CLOSE
#2
50:
END
(10] Opens the file FILE01 for input.
[20-30] Finds the size of
the
file and prints out the value.
[40] Closes the file.
175
p
o