User`s manual

EXAMPLES OF OPENING SEQUENTIAL FILES:
If the me alreadyexists,you can use the replace option in the OPEN
statement, similarto the SAVE-and-replacedescribedin chapter 3. Simplyadd
the (0'0:beforethe file'snamein the OPENstatement.
EXAMPLE OF SEQUENTIAL FILE WITH REPLACE OPTION:
OPEN 2, 8, 2, "(Q?():DATA,S,W"
PRINT#andINPUT#.
The PRINT# command works exactly like the PRINT statement, except
that output is re-directed to the disk drive. The reason for the special emphasis
on the word exactly is that all the formatting capabilities of the PRINT
statement, as applies to punctuation and data types, applies here too. It just
means that you have to be careful when putting data into your files.
FORMAT FOR WRITING TO FILE WITH PRINT#:
PRINT# file#, data list
The file# is the one from the OPEN statement when the file was created.
The data list is the same as the regular PRINT statement-a list of variables
and/or text inside quote marks. However, you must be especially careful when
writing data that it is as easy as possible to read back again later.
When using the PRINT# statement, if you use commas (,) to separate
items on the line, the items will be separated by some blank spaces, as if it were
being formatted for the screen. Semicolons (;) don't result in any extra spaces.
In order to more fully understand what's happening, here is a diagram of a
sequential file created by the statement OPEN 5, 8, 5, "O:TEST,S,W":
char
The eof stands for the end-of-me marker. String data entering the file goes
in byte by byte, including spaces.
For instance, let's set up some variables with the statement A$=
"HELLO"; B$= "ALL": C$= "BYE". Here is a picture of a me after the
20