![]() |
![]() HP OpenVMS Systemsask the wizard |
![]() |
The Question is: I have written a sample program in Java which first tried to open a RandomAccessFile in "rw" mode and then tries to open it in "r" mode without closing the earlier. This leads to a FileNotFoundException while opening in "r" mode. Is there any restriction on VMS for opening files. I also observed that opening file in read mode multiple times has no problem but opening in "rw" after "r" also gives filenotfoundexception. What is the reason for this and whats the solution. Thanks Bhuvan The Answer is : Java V1.4.0 does not particularly support file-write sharing on OpenVMS. For details on file sharing, please see the JAVA$FILE_OPEN_MODE logical name and the associated information in the OpenVMS Java release notes and particularly in the C run-time (RTL) library documentation. For details on RMS file access and file access sharing (as used from C), please see the OpenVMS FAQ.
|