Check that file exists: Difference between revisions
Content added Content deleted
(→{{header|Elixir}}: makes a mistake) |
|||
Line 857: | Line 857: | ||
Exists("/docs") and IsDirectory("/docs");</lang> |
Exists("/docs") and IsDirectory("/docs");</lang> |
||
=={{header|Mathematica}}== |
=={{header|Mathematica}} / {{header|Wolfram Language}}== |
||
<lang Mathematica>wd = NotebookDirectory[]; |
<lang Mathematica>wd = NotebookDirectory[]; |
||
FileExistsQ[wd <> "input.txt"] |
FileExistsQ[wd <> "input.txt"] |
||
Line 864: | Line 864: | ||
FileExistsQ["/" <> "input.txt"] |
FileExistsQ["/" <> "input.txt"] |
||
DirectoryQ["/" <> "docs"]</lang> |
DirectoryQ["/" <> "docs"]</lang> |
||
=={{header|MATLAB}} / {{header|Octave}}== |
=={{header|MATLAB}} / {{header|Octave}}== |