I never thought it would happen to me, but I ran into my first bug in Java:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5003595
I\'m pretty much in th
The obvious alternative is File.isFile(). Try that first.
Although it will become inaccurate when reading read-only files you could always use the File.canWrite() to check if the file exists.
If both the above fail you could use the File.length(). If it returns 0L you know that the file does not exists.