RandomAccessFile and 1.4

Manfred Riem mriem at manorrock.org
Wed Jul 21 04:19:00 PDT 2004


Hi all,

I've been trying to use the following code snippet using a RandomAccessFile.

  RandomAccessFile rfile = new RandomAccessFile( file, "rws" );
  rfile.write( byte );

The current version of the J2SDK 1.4 throws a FileNotFoundException, while
the
Windows accepts it without any problems. 

Anyone a suggestion, besides dropping the 's' flag? I want to be sure 
the changes have been written to the underlying storage before continuing.

Regards,
Manfred Riem



More information about the freebsd-java mailing list