Check that file exists: Difference between revisions

Add QB64
(omit from Scratch)
(Add QB64)
Line 2,420:
 
The more generic [https://docs.python.org/3/library/os.path.html#os.path.exists <code>os.path.exists(path)</code>] function will return True if the path exists, being it either a regular file or a directory.
 
=={{header|QB64}}==
<lang qbasic>$NOPREFIX
PRINT DIREXISTS("docs")
PRINT DIREXISTS("\docs")
PRINT FILEEXISTS("input.txt")
PRINT FILEEXISTS("\input.txt")</lang>
 
=={{header|R}}==
1,808

edits