[5319] in java-interest
Problem on RandomAccessFile
daemon@ATHENA.MIT.EDU (Kenneth Cheng)
Mon Feb 5 22:59:12 1996
From: Kenneth Cheng <kcheng@cs.stanford.edu>
To: java-interest@java.sun.com
Date: Thu, 1 Feb 1996 15:26:00 -0800 (PST)
I try to create a random access file by declaring:
RandomAccessFile file = new RandomAccessFile("ken.dat","rw");
ken.dat is located at the directory where my applet is located. I
was suspecting that maybe I have to specify a path. So I did the following:
File dir = new File("c:\data\");
File input = new File(dir,"ken.dat");
RandomAccessFile file = new RandomAccessFile(input,"rw");
I already created the file with a string "this is a test" in it. The system
keeps telling me "***Security Exception" file.read:ken.dat***". Why?
I am using Win95 and I did not set any security features to my file.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com