I am accessing the file using RandomAccessFile .
I get following error
Exception in thread "main" java.lang.RuntimeException: The given file does not exist.
at scjd.DBFileReader.main(DBFileReader.java:213)
Caused by: java.io.FileNotFoundException: C:\db-1x3.db (Access is denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
at scjd.DBFileReader.main(DBFileReader.java:100)
Java Result: 1
The file exists at the location and if I only read is successful operation with parameter "r"
If I pass "rw" then I get the above error.
Can anyone help me with this error .