| Author |
How to delete an object which is seraliazed from the file
|
Ashuthosh san
Ranch Hand
Joined: Jan 28, 2009
Posts: 35
|
|
Hi,
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.
Regards
Asha
|
 |
amit punekar
Ranch Hand
Joined: May 14, 2004
Posts: 488
|
|
Hi,
I think you are writing the object's state using ObjectOutputStream that has handle to FileOutputStream. If that is the case you can delete the file in which the object was serialized using java.io.File.
Hope this helps.
|
Regards,
Amit
|
 |
 |
|
|
subject: How to delete an object which is seraliazed from the file
|
|
|