[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RandomAccessFile and 1.4
On Wed, Jul 21, 2004 at 01:19:05PM +0200, Manfred Riem wrote:
> 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.
The patch in my last response appears to correct this problem for me.
For anyone else wanting to test it, you only get the FileNotFoundException
if file already exists.
--
Greg Lewis Email : glewis@xxxxxxxxxxxxxx
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : glewis@xxxxxxxxxxx