CAB A+ Series Programming Manual page 416

Hide thumbs Also See for A+ Series:
Table of Contents

Advertisement

a-Series basic compiler
416
This program does also writing using files but on the RS-232:
Example:
This demonstrates the file path and name handling of abc (it is necessary to have test.dat on
the card, e.g. from the last demo program):
Example:
cab Produkttechnik GmbH & Co KG
<ABC>
a$="Hello „+CHR$(DEC(„20AC"))
OPEN 1,"/DEV/RS232:57600,RTS/CTS","w"
PRINT #1 a$,chr$(13);
FOR i=1 TO 10
PRINT #1 i,chr$(13);
NEXT i
CLOSE 1
</ABC>
<ABC>
PRINT „a"
PRINT „; test.dat: „,exists(„test.dat")
PRINT „; test.dat: „,exists(„TEST.DAT")
PRINT „; test.dat: „,exists(„/card/misc/test.dat")
PRINT „; test.dat: „,exists(„/CARD/TEST.dat")
PRINT „; test2.dat: „,exists(„test2.dat")
</ABC>
416
416

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mach 4PxXd4

Table of Contents