A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
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:
- it saves me about five hours per week
subject: How to delete an object which is seraliazed from the file
Random Access File Question
How to delete from the middle of the file using object streams
Update Serializable Object
Delete a file created and opened in IE
Deleting data form a file?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013