The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

reading from an appended file...

Posted by mariela on May 15, 2001 at 12:05 AM

hi Rachna,
I am now facing the same problem as you mention below.
Have you managed to solve it? What did you do?
Thanks,
Mariela

> hi,
> I have opened a file in append mode
> using ObjectOutputStream out=new ObjectOutputStream(new FileOutputStream("filename",true));

> now my problem is that when i try to read the file using
> ObjectInputStream in =new ObjectInputStream(new
> FileInputStream("filename"));

> i get an error that
> java.io.StreamCorruptedException: Type code out of range, is -84
> what should i do?

>
> where am i going wrong.






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us