281 OPENOUT open file for output to cassette, disc or Econet Purpose This opens a cassette or disc file for output. Before you can record data (rather than programs) you have to open a file. More information about files is given in chapter 31. OPENOUT is used to inform the computer that you wish to record data on cassette or disc. The computer allocates a channel to the operation. When working with discs or over Econet then if a file already exists with that name it will be deleted. If no file exists then a new one will be created. 330 X=OPENOUT("cinemas") Example A function which returns the channel number allocated to an output file.
Description If a file of the same name exists then that file will first be deleted. If no file exists then one will be created. Syntax = OPENOUT ( ) Associated keywords OPENIN , OPENUP , PTR# , EXT# , INPUT# , PRINT# , BGET# , BPUT# , EOF# , CLOSE#