[6209] in java-interest

home help back first fref pref prev next nref lref last post

Re: Handling Exceptions - doubts ....

daemon@ATHENA.MIT.EDU (Kenneth Cheng)
Mon Mar 25 19:36:03 1996

Date:         Mon, 18 Mar 1996 17:43:45 -0800
Reply-To: Java Interest <JAVA-INTEREST@JAVASOFT.COM>
From: Kenneth Cheng <kcheng@CS.STANFORD.EDU>
To: Multiple recipients of list JAVA-INTEREST
              <JAVA-INTEREST@JAVASOFT.COM>
In-Reply-To:  <199603180819.TAA29113@wraith.cs.uow.edu.au> from "Dhaval M Shah"
              at Mar 18, 96 07:19:01 pm

You must use the try...catch statement together with your file open methods.
e.g. try{file = RandomAccessFile("test.file","rw")}
        catch(Exception e){System.out.println("exception error");}
I hope this helps.

-----
This message has been forwarded via the JAVA-INTEREST
mailing list.  In order to unsubscribe from this list, send a message to
listserv@javasoft.com with the command 'signoff JAVA-INTEREST' in
the message body (not in the subject line).

home help back first fref pref prev next nref lref last post