I am using the object RandomAccessFile to access to files with
RandomAccessFile file = new RandomAccessFile(path, "r");
My problem is if file path get removed from disk when I do perform a
file.seek(...);
or a
file.readLine()
no exception is started, I do not have any exception.
Is it possible to have an exception in case of Dangling Pointer, if this file has been removed from disk?
Is there another method to detect the file inaccessibility ?