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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.