I'm trying to use an absolute path to read an file from file system but failed because of the "FileNotFoundException", which I don't know why
File file=new File("E:\\Directory\\File.txt");
byte[] buff=new byte[8];
FileInputStream fileIn=new FileInputStream(file.getAbsolutePath());
int n=fileIn.read(buff);
System.out.println(n);