PRINT#
To output data to a sequential file
PRINT# <file No.> [,<expression>]
PRINT# 1, A$
<file No > is the number specified when the file was
opened for sequential output.
<expression> is the string or numeric data to be output to
the file The format in which the data will be output vanes
depending on the device used for output For the output
format for devices other than the disk drive, refer to the
BASIC Reference Manual
The format output to the file is exactly the same as that
output to the display with the PRINT statement However, as
the length of the output line is unlimited, CR or LF are not
output automatically
(See INPUT#.)
4-22
PRINT# USING
To write strings and numerics into a sequential file using a
specified format
PRINT#<file number>, USING<"format string">;
[<expression>[ ; <expression>. . .]]
PRINT#1, USING "###";A
PRINT# USING writes string or numeric expressions into the
sequential file specified by <file number> using the format
specified by <"format string"> For <"format string">.
refer to PRINT USING
PRINT# USING outputs data in almost the same format as
that for output to the display screen Therefore, when
reading a data file output by a PRINT USING, the data will not
be delimited unless you use delimiters, commas for numeric
expressions and double quotation marks for string expres-
sions
In general, if the data does not end with a colon or
semicolon, carriage return and line feed will be output
However, if the output device is "CAS0 " or "CAS1 ", only
carriage return will be output
(See OPEN and PRINT# )
4-23