dcsimg

How do I check for the existence of a file?

John Zukowski

The File class includes an exists() method that reports on the existence of a file. The method returns false to mean the file doesn't exist, true if it does.