FILE?
Syntax FILE? filename
 
Explanation FILE? reports TRUE if the file specified by its input exists on the disk; otherwise it reports FALSE.

Specify the pathname to access a disk or directory that is not currently selected. Since characters used in path names can be special characters in Logo, path names should be surrounded by vertical bars, as in |C:\Program Files\Terrapin\Logo\Shapes.lgo|. On the Macintosh, the colon character is used as a folder name separator, as in "Macintosh HD:mydata.You may also use the forward slash in path names, which is recognized on both Macintosh and Windows, as in"/home/mydata.

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

Examples SAVE "SESSION1 
FILE? "SESSION1.LGO 
Result: TRUE 
FILE? "SESSION2.LGO 
Result: FALSE 
FILE? "COMMANDS.LGO
Result: TRUE 

TopIndex