A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Random Access File modes
Joined: Nov 22, 2008
Feb 07, 2000 23:08:00
this compiles. But gives a run time error.
RandomAccessFile raf = new RandomAccessFile(f,"+rw");
where f is a File.
The valid modes as I know them (which may be wrong) are "r" and "rw". please enlighten
Joined: Jan 30, 2000
Feb 08, 2000 00:44:00
The valid modes are indeed "r" and "rw". "+rw" is not a valid mode.
"I'm not back." - Bill Harding,
I agree. Here's the link:
subject: Random Access File modes
how to getcursor to first location of file?
ambigious question about random access file
RandomAccessFile-----Barry Boone Mock
B&S: Server Shutdown
calculations using JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014