Trying to open a file using the Java.io.File.File(String Pathname) function
String filename = "C:\data\sample.txt";
if (!new File(filename)).exists())
it works fine and the file is found (and exists)
but if I write
String filename = "sample.txt";
I can’t file which directory I need to copy sample.txt to for it to work.
I tried adding it as a resource with and without linking it to an existing file but could not get it to work.
Please Help
-A