RosettaCodeData/Task/Check-that-file-exists/Mathematica/check-that-file-exists.math
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

6 lines
141 B
Text

wd = NotebookDirectory[];
FileExistsQ[wd <> "input.txt"]
DirectoryQ[wd <> "docs"]
FileExistsQ["/" <> "input.txt"]
DirectoryQ["/" <> "docs"]