RosettaCodeData/Task/Check-that-file-exists/Mathematica/check-that-file-exists.math

7 lines
141 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
wd = NotebookDirectory[];
FileExistsQ[wd <> "input.txt"]
DirectoryQ[wd <> "docs"]
FileExistsQ["/" <> "input.txt"]
DirectoryQ["/" <> "docs"]