I tried to create an object from FileInputStream
and pass the relative value of a file to its constructor, but it doesn't work properly and threw a FileNotFoundException
try {
InputStream is = new FileInputStream("/files/somefile.txt");
} catch (FileNotFoundException ex) {
System.out.println("File not found !");
}