hi guys, I encoutered a compiler error for the following class. The compiler error was:
Exception in
thread "main" java.io.IOException: Access is denied
at java.io.RandomAccessFile.write(Native Method)
at Test.main(Test.java:9)
=================
import java.io.*;
class
Test {
public static void main(
String[] args) throws IOException
{
File file = new File("C:\\Begjava\\Test.java");
RandomAccessFile raf = new RandomAccessFile(file, "r");
raf.write(1000); // line 9
}
}
=================
Any suggestions?
thanks :roll: