[5337] in java-interest
Re: Problem on RandomAccessFile
daemon@ATHENA.MIT.EDU (Franck Lantres)
Tue Feb 6 09:24:31 1996
From: Franck Lantres <lantres@lome.seriat.fr>
Date: Tue, 6 Feb 96 13:04:44 GMT
To: java-interest@java.sun.com
Kenneth Cheng wrote :
> 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.
The reason is Java can't write in a local file ...
---------------------------------------------------
Franck LANTRES
CERSIAT/BAE
Fort de Bicetre
BP 56
94272 Le Kremlin Bicetre Cedex
FRANCE
email : lantres@seriat.fr
---------------------------------------------------
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com