PRINT
PRINT [#<stream expression> ,][<print list>][<USING
clause>][<separator>]
<print list> is <print item>[<separator><print list>]
<print item> is <expression>
or SPC(<integer expression>)
TAB(<integer expression>)
Write data to a cassette file.
10 OPENOUT "DATA"
20 PRINT #9, “Hello”
30 CLOSEOUT
Write data to a line printer
10 BOBSSALARY = 23000*PI
20 PRINT #8, USING "######.##";BOBSSALARY
30 PRINT #0, BOBSSALARY
RUN
72256.6311
Ready
COMMAND: Print data at stream expression using the format specified. See table for format
characters.
Where no formats are specified, BASIC prints in ‘free format’, where a comma following the <print
item> will send the printed item to start at the next print ZONE (default to 13). A semi-colon simply
separates the expressions.
SPC(<integer expression>) prints the given number of spaces, defaulting to zero if the
<numeric expression> is less than 1. SPC does not require to be terminated by a comma or semi-
colon - a semi-colon is assumed at all times.
TAB(<integer expression>) prints spaces to move to the given print position, if less than
1, then 1 is assumed.
If the required position is equal to or exceeds the current position, spaces are printed to reach the
required position - if less, then a carriage return is sent, followed by spaces to reach the required
position. TAB does not require termination by a comma or semi-colon.
(Continued. . . . . . ..)