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.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: How to delete an object which is seraliazed from the file
How to delete from the middle of the file using object streams
Random Access File Question
Delete a file created and opened in IE
Deleting data form a file?
Update Serializable Object
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014