Chapter
6
ADVANCED
FILE
MANAGEMENT
In the preceding chapters, you learned how to manipulate files on the disk, and
were shown the format of commands used to create and update files. In this
chapter, you will utilize these skills in a file handling application using random
or relative access.
SPECIAL OPEN AND CLOSE STATEMENTS
FOR DIRECT ACCESS
The BASIC statements (after initializing the disk):
OPEN2,8,4,”#”
and
OPEN2,8,4,”#0”
are examples of how to open a channel to one buffer (to be used with the
block commands). In the first example, the first available buffer is allocated to
channel 4. The second example is an attempt to allocate buffer 0 to the channel.
55