String file = "/c/Dir1/Dir2/abc.txt";
BufferedReader br = new BufferedReader(new FileReader(file));
java.io.FileNotFoundException: \c\Dir1\Dir2\abc.txt (The system cannot find the path specified)
My OS is Windows 7.
I am using cygwin, and i can see the /c/Dir1/Dir2/abc.txt (unix style)
But in Eclipse, I am getting the above error.
However, if I use
File file = new File("C:\\Dir1\\Dir2\\abc.txt");
This works fine. But is there a way for me to specify the file path in the unix style.