A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
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
Update Serializable Object
Delete a file created and opened in IE
How to delete from the middle of the file using object streams
Deleting data form a file?
Random Access File Question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015