Check that file exists: Difference between revisions

Content added Content deleted
No edit summary
(clarify task)
Line 1: Line 1:
{{task}}
{{task}}


In this task, the job is to verify that a file called "input.txt" exists or not and that the directory called "docs" exists or not. Assuming current directory or fullpath. Either "/input.txt" or "\input.txt" for the former and "/docs/" or "\docs\" for the second test.
In this task, the job is to verify that a file called "input.txt" and the directory called "docs" exist. This should be done twice: once for the current working directory and once for a file and a directory in the filesystem root.



==[[Java]]==
==[[Java]]==