FILE?

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

?