[6074] in java-interest
Re: Handling Exceptions - doubts ....
daemon@ATHENA.MIT.EDU (Kenneth Cheng)
Mon Mar 18 23:23:30 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.