User`s guide
IN# 0 - sets the source for Apple inputs to the keyboard (default).
INT - (integer) puts system into Integer BASIC if it is present.
FP - (floating point) puts system into standard Applesoft BASIC.
OPEN NARFOO - prepares to read or write a TEXT file named NARFOO.
READ NARFOO - tells DOS that INPUT and GET statements will obtain characters
from a TEXT file named NARFOO.
WRITE NARFOO - tells DOS that PRINTed characters will go to a TEXT file named
NARFOO.
CLOSE NARFOO - used to terminate access to a TEXT file named NARFOO. Just CLOSE
terminates access to all OPENed TEXT files.
EXEC NARFGO - tells DOS to execute the BASIC and DOS commands found in a TEXT
file named NARFGO
The above TEXT file commands handle 'normal' sequential TEXT files. DOS can also
OPEN, READ, WRITE, ... random access TEXT files. (See DOS manual.)
Most DOS commands also let you specify Drive and/or Slot. For example CATALOG,
D2 lists the contents of the diskette in Drive 2 to screen. SAVE NARF,S5,D2
saves NARF to Drive 2 in Slot 5.
NOTE --> Using Drive or Slot parms in a DOS command sets the default Drive or
Slot. So, after CATALOG, D2, a plain LOAD or SAVE will access Drive 2.
______________________________
005- How do I use DOS commands from the keyboard? ...
from a program?
To use a DOS command from the keyboard, type it in. (A few commands can be
issued only from a program.) To use a DOS command in a program enclose it in
quotes preceded by PRINT CHR$(4). For example:
100 PRINT CHR$(4) "BLOAD NARF, A$2000"
______________________________
006- How do I use variables, say for file length, in a
DOS command?
Use variables in a command this way:
120 PRINT CHR$(4) "BSAVE NARF, A$2000, L"; NB
Line 120 says that the Length of NARF is the value of variable NB. NB is used
here to represent the number of bytes (in decimal) to be saved.