FANDOM


Syntax

FILE? filename.ext

Explanation

FILE? outputs TRUE if the file specified by its input exists on the disk; otherwise, it outputs FALSE.

Use a drive specifier to access the disk that is not currently selected. Since a colon is a delimiter in Logo, it must be preceded by a backslash (\) to be read correctly.

See also DIRECTORY, FILE.INFO, LOAD, and SAVE.

Example

? SAVE "SESSION1

Saving workspace in file SESSION1.LGO

Result: TRUE

? FILE? "SESSION1.LGO

Result: TRUE

? FILE? "SESSION2.LGO

Result: FALSE

?

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.