Anonymous user
Check that file exists: Difference between revisions
→[[Java]]
(New page: {{task}} In this task, the job is to verify that a file called "input.txt" exists or not and that the directory "docs" exists or not. Assuming current directory or fullpath. Either "/inpu...) |
|||
Line 21:
public static void main(String args[]) {
test("file", "input.txt");
test("directory", "docs");
}
}
|