Hello,
I am getting a problem with objectinputstream and fileinputstream.
Whenever I try to close a ObjectInputStream object it gives an
Exception. And if I try to delete the associated file on disk, the
file doesnt get deleted.
The code I have used is of following manner.
File tempfile=new File("somefile");
FileInputStream fis=new FileInputstream(tempfile);
ObjectInputStream ois=new ObjectInputStream(fis);
Now if I do
try { ois.close();
fis.close
}
catch(Exception e ) {..} // control enters catch block
try {
tempfile.delete();
}
catch(Exception e ) {..}
The File does not get deleted.
Could you please help me in this matter.
regards,
Abhijit.