Commodore 128 System Manual page 298

Hide thumbs Also See for 128:
Table of Contents

Advertisement

Outputs the data " HELLO THERE" and the variables A$ and B$
to the printer.
10 OPEN 2,8,2"DATAFILE,S,W"
20 PRINT#2,A,B$>C,D
This example outputs the data variables A, B$, C and D to the
disk file number 2.
NOTE:
The PRINT# command is used by itself to clear the
channel to a device after outputting via CMD and before closing
the file as follows:
OPEN 4,4
CMD4
LIST
PRINT#4
CLOSE4
See also CMD command.
PRINT USING
Output using format
PRINT[#filenumber,] USING"format list"; print list
This statement defines the format of string and numeric items for
printing to the text screen, printer or other device. The format is
put in quotes. This is the format list. Then add a semicolon and a
list of what is to be printed in the format for the print list. The list
can be variables or the actual values to be printed, separated by
commas.
FORMAT STRING USED WITH
CHARACTER
Hash sign (#)
Plus sign (+ )
Minus sign (-)
Decimal Point (.)
Comma (,)
17-56
NUMERIC
X
X
X
X
X
STRING
X

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

128d

Table of Contents