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.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.