How does java read a file that another process is using?

problem description

suppose that there is now a. Net program writing binaries to access the contents of the file through Java, so there will be conflicts.

because it is a binary file, the bytes in it are randomly read through

RandomAccessFile arf = new RandomAccessFile (file, "r")

read-only is specified here, but it still cannot be read properly. Is there any other way?

Apr.02,2021
Menu