I have a java project where I am reading a file. As the file is in the current directory I am doing this:
String dataset = "./myFile.dat";
But I am getting: java.io.FileNotFoundException
saying It can not find the file.
How to fix this? When I give entire path it works...
String dataset = "C:\\eclipse\\workspace\\p1\\src\\myFile.dat";