Date: Wed, 21 Jul 2004 11:17:46 -0600 From: Greg Lewis <glewis@eyesbeyond.com> To: Manfred Riem <mriem@manorrock.org> Cc: freebsd-java@freebsd.org Subject: Re: RandomAccessFile and 1.4 Message-ID: <20040721171746.GA24519@misty.eyesbeyond.com> In-Reply-To: <200407211119.i6LBJIMf019356@new.iagu.net> References: <200407211119.i6LBJIMf019356@new.iagu.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040721171746.GA24519>