File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to delete an object which is seraliazed from the file
Joined: Jan 28, 2009
Jun 24, 2009 02:57:16
I am writing some objects to file using writeObject(), and after reading using readObject() i want to delete that object from that file.
Could you please let me know how do i do it?
I want to delete those objects from the file once i am read.
Joined: May 14, 2004
Jun 24, 2009 10:18:33
I think you are writing the object's state using
that has handle to
. If that is the case you can delete the file in which the object was serialized using
Hope this helps.
I agree. Here's the link:
subject: How to delete an object which is seraliazed from the file
Delete a file created and opened in IE
Deleting data form a file?
How to delete from the middle of the file using object streams
Random Access File Question
Update Serializable Object
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013