FANDOM


Syntax

CREATE filename

Explanation

CREATE deletes the DOS file with the name specified by its input. A new, empty file is prepared for output and its assigned Logo stream number is output. Data may then be written to the stream using the PRINT, TYPE and other Logo stream output primitives by making STANDARD.OUTPUT the stream number.

If a DOS device name is specified, CREATE functions as OPEN.

Examples

The following procedure prints titles of user-defined procedures in workspace into a disk file.

TO POTS.FILE

MAKE "STANDARD.OUTPUT CREATE "PROCS
POTS
CLOSE :STANDARD.OUTPUT
MAKE "STANDARD.OUTPUT 0

END