I have noticed that any URL beginning "file:\\" will return valid object. Most odd! If it is on the local file system then the following code will work :
import java.io.File;
..
..
File testFile = new File ("\test\t.txt");
if (!testFile.exists()) {
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.