EasyManua.ls Logo

Husky Hunter - Page 283

Husky Hunter
499 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC FUNCTIONS SECTION 5.17
PRINT#.
5. 17,13 Function PRINT# writes data to file.
Syntax PRINT I/file no, var1 ;var2; •••. varX
Examples PRINT/14 ,A$; 84 ;D$
or
PRINT/11,X;Y;Z
The variables specified are written to the appropiate file
number.
Remarl<s Variables should be separated by semicolons and not commas.
VER.V09F
As PRINT/I outputs to the file in the same way as it would
to the screen, any spaces present
if commas were used would
also be written to the file.
Care should be taken when writing string data to files as
they should not contain any commas, semicolons, leading
bl~nks, carriage returns or line feeds as they would be
interpreted as delimiting characters.
If it is necessary
to include any delimiting characters in a string the
variable name should be enclosed in double quotes by using
CHR$(34).
For example, if A$
=
11
TOM,DICK
11
and B$:
11
HARRY". The
statement:
PRINTll2,A$;B$
would write the following to the file:
TCM,DICKHARRY
and the statement:
INPUTll2,A$,B$
would input 'TCM' to A$ and 'DICKHARRY' to B$.
PAGE 5 - 114