Is there any way by which I can convert RandomAccessFile to File.
Printable View
Is there any way by which I can convert RandomAccessFile to File.
You mean get the file name/File object from which the RandomAccessFile was opened? I don't believe there's a way to do that: once it's open, the RandomAccessFile doesn't hang on to that information.